; boucle 23 + routine

	org &2000

	di
	ld hl,&c9fb	    ; set new interrupt
	ld (&38),hl

	ld bc,&bc00
	out (c),c
	inc b
	ld a,&40
	out (c),a
	dec b
	inc c
	ld de,&4033
	out (c),c
	inc b
	out (c),d
	dec b
	inc c
	out (c),c
	inc b
	out (c),e

	ld de,&584a	; Set the colors and mode
	ld hl,&4754
	ld a,%10011101
	ld bc,&7f00
	out (c),a	; Set Interrupt and Upper/Lower rom area disable
	out (c),c
	out (c),d
	inc c
	out (c),c
	out (c),e
	inc c
	out (c),c
	out (c),h
	inc c
	out (c),c
	out (c),l
	ld e,&10
	out (c),e
	out (c),d

test_again

	ld hl,&c000
	ld (hl),&f0
	ld de,&c001
	ld bc,&3fff
	ldir

	di
	ld (test_save_sp+1),sp

	ld hl,TABLE

test_loop
	ld b,&f5
test_SYNCHRO
	in a,(c)
	rra
	jr nc,test_SYNCHRO

	ld sp,hl
	xor a
	ld bc,&c880
	ret

test_DRAW_BACK

test_save_sp
	ld sp,0

	ld bc,&7fc0
	out (c),c

	ei


dothejob

	ld b,&f5
SYNCHRO 
	in a,(c)
	rra
	jr nc,SYNCHRO

	halt
	halt

	ld bc,&f40e
	out (c),c
	ld bc,&f6c0
	out (c),c
	ld bc,&f792
	out (c),c
	ld bc,&f645
	out (c),c
	ld b,&f4
	in a,(c)
	ld bc,&f782
	out (c),c
	ld bc,&f609
	out (c),c  
	rla
	jp c,dothejob

	jp test_again

TABLE
	defw DRAW0_BOB0,&c001+04
	defw DRAW1_BOB0,&c801+12
	defw DRAW2_BOB0,&d001+20
	defw DRAW3_BOB0,&d801+28
	defw DRAW4_BOB0,&e001+36
	defw DRAW5_BOB0,&e801+44
	defw DRAW6_BOB0,&f001+52
	defw DRAW7_BOB0,&f801+60

	defw DRAW0_BOB1,&c101+04
	defw DRAW1_BOB1,&c901+12
	defw DRAW2_BOB1,&d101+20
	defw DRAW3_BOB1,&d901+28
	defw DRAW4_BOB1,&e101+36
	defw DRAW5_BOB1,&e901+44
	defw DRAW6_BOB1,&f101+52
	defw DRAW7_BOB1,&f901+60

	defw DRAW0_BOB2,&c201+04
	defw DRAW1_BOB2,&ca01+12
	defw DRAW2_BOB2,&d201+20
	defw DRAW3_BOB2,&da01+28
	defw DRAW4_BOB2,&e201+36
	defw DRAW5_BOB2,&ea01+44
	defw DRAW6_BOB2,&f201+52
	defw DRAW7_BOB2,&fa01+60

	defw DRAW0_BOB3,&c301+04
	defw DRAW1_BOB3,&cb01+12
	defw DRAW2_BOB3,&d301+20
	defw DRAW3_BOB3,&db01+28
	defw DRAW4_BOB3,&e301+36
	defw DRAW5_BOB3,&eb01+44
	defw DRAW6_BOB3,&f301+52
	defw DRAW7_BOB3,&fb01+60

	defw test_DRAW_BACK

; masque gauche
; &88 - %10001000
; &CC - %11001100
; &EE - %11101110

; masque droit
; &77 - %01110111
; &33 - %00110011
; &11 - %00010001

;-------------------------------
; New bob gfx by Super Sylvestre
;-------------------------------
;BALL_0

;	   77 EE   
;	11 88 33 88
;	22 69 19 CC
;	54 C3 04 EE
;	56 87 08 EE
;	B8 4B 11 FF
;	A9 0E 2A FF
;	8B 0D 55 FF
;	8A 0A 33 DD
;	89 11 77 DD
;	CC 22 EE BB
;	66 55 DD 26
;	77 FF EE E6
;	33 FF CD CC
;	11 FF 33 88
;	   77 EE   

;           77 EE             88 11     L0 c0
;        11 88 33 88      EE         77 L1 c8
;        22 69 19 CC      CC         33 L2 d0
;        54 C3 04 EE      88         11 L3 d8
;        56 87 08 EE      88         11 L4 e0
;        B8 4B 11 FF                    L5 e8
;        A9 0E 2A FF                    L6 f0
;        8B 0D 55 FF                    L7 f8
;        8A 0A 33 DD                    L8 c0
;        89 11 77 DD                    L9 c8
;        CC 22 EE BB                    LA d0
;        66 55 DD 26      88         11 LB d8
;        77 FF EE E6      88         11 LC e0
;        33 FF CD CC      CC         33 LD e8
;        11 FF 33 88      EE         77 LE f0
;           77 EE             88 11     LF f8
; ---------------------------
MASK88 equ &88
MASKCC equ &CC
MASKEE equ &EE

MASK77 equ &77
MASK33 equ &33
MASK11 equ &11

BOB0_L0_DATA2  equ &77
BOB0_L0_DATA3  equ &EE
BOB0_L1_DATA1  equ &11
BOB0_L1_DATA2  equ &88
BOB0_L1_DATA3  equ &33
BOB0_L1_DATA4  equ &88
BOB0_L2_DATA1  equ &22
BOB0_L2_DATA2  equ &69
BOB0_L2_DATA3  equ &19
BOB0_L2_DATA4  equ &CC
BOB0_L3_DATA1  equ &54
BOB0_L3_DATA2  equ &C3
BOB0_L3_DATA3  equ &04
BOB0_L3_DATA4  equ &EE
BOB0_L4_DATA1  equ &56
BOB0_L4_DATA2  equ &87
BOB0_L4_DATA3  equ &08
BOB0_L4_DATA4  equ &EE
BOB0_L5_DATA1  equ &B8
BOB0_L5_DATA2  equ &4B
BOB0_L5_DATA3  equ &11
BOB0_L5_DATA4  equ &FF
BOB0_L6_DATA1  equ &A9
BOB0_L6_DATA2  equ &0E
BOB0_L6_DATA3  equ &2A
BOB0_L6_DATA4  equ &FF
BOB0_L7_DATA1  equ &8B
BOB0_L7_DATA2  equ &0D
BOB0_L7_DATA3  equ &55
BOB0_L7_DATA4  equ &FF

BOB0_L8_DATA1  equ &8A
BOB0_L8_DATA2  equ &0A
BOB0_L8_DATA3  equ &33
BOB0_L8_DATA4  equ &DD
BOB0_L9_DATA1  equ &89
BOB0_L9_DATA2  equ &11
BOB0_L9_DATA3  equ &77
BOB0_L9_DATA4  equ &DD
BOB0_LA_DATA1  equ &CC
BOB0_LA_DATA2  equ &22
BOB0_LA_DATA3  equ &EE
BOB0_LA_DATA4  equ &BB
BOB0_LB_DATA1  equ &66
BOB0_LB_DATA2  equ &55
BOB0_LB_DATA3  equ &DD
BOB0_LB_DATA4  equ &26
BOB0_LC_DATA1  equ &77
BOB0_LC_DATA2  equ &FF
BOB0_LC_DATA3  equ &EE
BOB0_LC_DATA4  equ &E6
BOB0_LD_DATA1  equ &33
BOB0_LD_DATA2  equ &FF
BOB0_LD_DATA3  equ &CD
BOB0_LD_DATA4  equ &CC
BOB0_LE_DATA1  equ &11
BOB0_LE_DATA2  equ &FF
BOB0_LE_DATA3  equ &33
BOB0_LE_DATA4  equ &88
BOB0_LF_DATA2  equ &77
BOB0_LF_DATA3  equ &EE
; ---------------------------
DRAW0_BOB0
; ---------------------------
	pop hl		;	L0 c0 11000000
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 4,h		;	L2 d0 11010000 set 4,h
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L2_DATA3
	dec l
	ld (hl),BOB0_L2_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	set 3,h		;	L3 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L3_DATA2
	inc l
	ld (hl),BOB0_L3_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	res 4,h		;	L1 c8 11001000 res 4,h
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L1_DATA3
	dec l
	ld (hl),BOB0_L1_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	set 5,h		;	L5 e8 11101000 set 5,h
	ld (hl),BOB0_L5_DATA1
	inc l
	ld (hl),BOB0_L5_DATA2
	inc l
	ld (hl),BOB0_L5_DATA3
	inc l
	ld (hl),BOB0_L5_DATA4
	res 3,h		;	L4 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L4_DATA3
	dec l
	ld (hl),BOB0_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	set 4,h		;	L6 f0 11110000 set 4,h
	ld (hl),BOB0_L6_DATA1
	inc l
	ld (hl),BOB0_L6_DATA2
	inc l
	ld (hl),BOB0_L6_DATA3
	inc l
	ld (hl),BOB0_L6_DATA4
	set 3,h		;	L7 f8 11111000 set 3,h
	ld (hl),BOB0_L7_DATA4
	dec l
	ld (hl),BOB0_L7_DATA3
	dec l
	ld (hl),BOB0_L7_DATA2
	dec l
	ld (hl),BOB0_L7_DATA1
	add hl,bc	;	L8 c0 11000000 add hl,bc
	ld (hl),BOB0_L8_DATA1
	inc l
	ld (hl),BOB0_L8_DATA2
	inc l
	ld (hl),BOB0_L8_DATA3
	inc l
	ld (hl),BOB0_L8_DATA4
	set 4,h		;	LA d0 11010000 set 4,h
	ld (hl),BOB0_LA_DATA4
	dec l
	ld (hl),BOB0_LA_DATA3
	dec l
	ld (hl),BOB0_LA_DATA2
	dec l
	ld (hl),BOB0_LA_DATA1
	set 3,h		;	LB d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LB_DATA2
	inc l
	ld (hl),BOB0_LB_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	res 4,h		;	L9 c8 11001000 res 4,h
	ld (hl),BOB0_L9_DATA4
	dec l
	ld (hl),BOB0_L9_DATA3
	dec l
	ld (hl),BOB0_L9_DATA2
	dec l
	ld (hl),BOB0_L9_DATA1
	set 5,h		;	LD e8 11101000 set 5,h
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LD_DATA2
	inc l
	ld (hl),BOB0_LD_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	res 3,h		;	LC e0 11100000 res 3,h
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LC_DATA3
	dec l
	ld (hl),BOB0_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	set 4,h		;	LE f0 11110000 set 4,h
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LE_DATA2
	inc l
	ld (hl),BOB0_LE_DATA3
	inc l
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	set 3,h		;	LF f8 11111000 set 3,h
	dec l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	dec l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 c8 11001000
;	33 E1 1F CC      CC	 33 L2 d8 11011000 set 4,h
;	11 CF BF 88      EE	 77 L1 d0 11010000 res 3,h
;	CF BF FF FF		    L5 f0 11110000 set 5,h
;	67 6B BF 6E      88	 11 L3 e0 11100000 res 4,h
;	56 5F FF EE      88	 11 L4 e8 11101000 set 3,h
;	FD 7F FF 55		    L6 f8 11111000 set 4,h
;	8F BF FF FF		    L7 c0 11000000 add hl,bc
;	FF 5F FF DD		    L9 d0 11010000 set 4,h
;	DF BF DD 77		    LA d8 11011000 set 3,h
;	DF FF EE BB		    L8 c8 11001000 res 4,h
;	77 55 55 66      88	 11 LC e8 11101000 set 5,h
;	77 FF AA AA      88	 11 LB e0 11100000 res 3,h
;	33 AA AA CC      CC	 33 LD f0 11110000 set 4,h
;	11 DD 77 88      EE	 77 LE f8 11111000 set 3,h
;	00 77 EE 00	  88 11     LF c0 11000000 add hl,bc
DRAW1_BOB0
; ---------------------------
	pop hl		;	L0 c8 11001000	  
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 4,h		;	L2 d8 11011000 set 4,h  
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L2_DATA3
	dec l
	ld (hl),BOB0_L2_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	res 3,h		;	L1 d0 11010000 res 3,h  
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L1_DATA2
	inc l
	ld (hl),BOB0_L1_DATA3
	inc l
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	set 5,h		;	L5 f0 11110000 set 5,h  
	ld (hl),BOB0_L5_DATA4
	dec l
	ld (hl),BOB0_L5_DATA3
	dec l
	ld (hl),BOB0_L5_DATA2
	dec l
	ld (hl),BOB0_L5_DATA1
	res 4,h		;	L3 e0 11100000 res 4,h  
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L3_DATA2
	inc l
	ld (hl),BOB0_L3_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	set 3,h		;	L4 e8 11101000 set 3,h  
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L4_DATA3
	dec l
	ld (hl),BOB0_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	set 4,h		;	L6 f8 11111000 set 4,h  
	ld (hl),BOB0_L6_DATA1
	inc l
	ld (hl),BOB0_L6_DATA2
	inc l
	ld (hl),BOB0_L6_DATA3
	inc l
	ld (hl),BOB0_L6_DATA4
	add hl,bc	;	L7 c0 11000000 add hl,bc
	ld (hl),BOB0_L7_DATA4
	dec l
	ld (hl),BOB0_L7_DATA3
	dec l
	ld (hl),BOB0_L7_DATA2
	dec l
	ld (hl),BOB0_L7_DATA1
	set 4,h		;	L9 d0 11010000 set 4,h  
	ld (hl),BOB0_L9_DATA1
	inc l
	ld (hl),BOB0_L9_DATA2
	inc l
	ld (hl),BOB0_L9_DATA3
	inc l
	ld (hl),BOB0_L9_DATA4
	set 3,h		;	LA d8 11011000 set 3,h  
	ld (hl),BOB0_LA_DATA4
	dec l
	ld (hl),BOB0_LA_DATA3
	dec l
	ld (hl),BOB0_LA_DATA2
	dec l
	ld (hl),BOB0_LA_DATA1
	res 4,h		;	L8 c8 11001000 res 4,h  
	ld (hl),BOB0_L8_DATA1
	inc l
	ld (hl),BOB0_L8_DATA2
	inc l
	ld (hl),BOB0_L8_DATA3
	inc l
	ld (hl),BOB0_L8_DATA4
	set 5,h		;	LC e8 11101000 set 5,h  
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LC_DATA3
	dec l
	ld (hl),BOB0_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	res 3,h		;	LB e0 11100000 res 3,h  
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LB_DATA2
	inc l
	ld (hl),BOB0_LB_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	set 4,h		;	LD f0 11110000 set 4,h  
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LD_DATA3
	dec l
	ld (hl),BOB0_LD_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	set 3,h		;	LE f8 11111000 set 3,h  
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LE_DATA2
	inc l
	ld (hl),BOB0_LE_DATA3
	inc l
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	add hl,bc	;	LF c0 11000000 add hl,bc
	dec l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	dec l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 d0 11010000
;	11 CF BF 88      EE	 77 L1 d8 11011000 set 3,h
;	67 6B BF 6E      88	 11 L3 e8 11101000 set 5,h res 4,h
;	33 E1 1F CC      CC	 33 L2 e0 11100000 res 3,h
;	56 5F FF EE      88	 11 L4 f0 11110000 set 4,h
;	CF BF FF FF		    L5 f8 11111000 set 3,h
;	FD 7F FF 55		    L6 c0 11000000 add hl,bc
;	DF FF EE BB		    L8 d0 11010000 set 4,h
;	FF 5F FF DD		    L9 d8 11011000 set 3,h
;	8F BF FF FF		    L7 c8 11001000 res 4,h
;	77 FF AA AA      88	 11 LB e8 11101000 set 5,h
;	DF BF DD 77		    LA e0 11100000 res 3,h
;	77 55 55 66      88	 11 LC f0 11110000 set 4,h
;	33 AA AA CC      CC	 33 LD f8 11111000 set 3,h
;	11 DD 77 88      EE	 77 LE c0 11000000 add hl,bc
;	00 77 EE 00	  88 11     LF c8 11001000 set 3,h
DRAW2_BOB0
; ---------------------------
	pop hl	; 00 77 EE 00	  88 11     L0 d0 11010000		
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 3,h		;	L1 d8 11011000 set 3,h
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L1_DATA3
	dec l
	ld (hl),BOB0_L1_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	set 5,h		;	L3 e8 11101000 set 5,h res 4,h
	res 4,h
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L3_DATA2
	inc l
	ld (hl),BOB0_L3_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	res 3,h		;	L2 e0 11100000 res 3,h	
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L2_DATA3
	dec l
	ld (hl),BOB0_L2_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	set 4,h		;	L4 f0 11110000 set 4,h	
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L4_DATA2
	inc l
	ld (hl),BOB0_L4_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	set 3,h		;	L5 f8 11111000 set 3,h	
	ld (hl),BOB0_L5_DATA4
	dec l
	ld (hl),BOB0_L5_DATA3
	dec l
	ld (hl),BOB0_L5_DATA2
	dec l
	ld (hl),BOB0_L5_DATA1
	add hl,bc	;	L6 c0 11000000 add hl,bc      
	ld (hl),BOB0_L6_DATA1
	inc l
	ld (hl),BOB0_L6_DATA2
	inc l
	ld (hl),BOB0_L6_DATA3
	inc l
	ld (hl),BOB0_L6_DATA4
	set 4,h		;	L8 d0 11010000 set 4,h	
	ld (hl),BOB0_L8_DATA4
	dec l
	ld (hl),BOB0_L8_DATA3
	dec l
	ld (hl),BOB0_L8_DATA2
	dec l
	ld (hl),BOB0_L8_DATA1
	set 3,h		;	L9 d8 11011000 set 3,h	
	ld (hl),BOB0_L9_DATA1
	inc l
	ld (hl),BOB0_L9_DATA2
	inc l
	ld (hl),BOB0_L9_DATA3
	inc l
	ld (hl),BOB0_L9_DATA4
	res 4,h		;	L7 c8 11001000 res 4,h	
	ld (hl),BOB0_L7_DATA4
	dec l
	ld (hl),BOB0_L7_DATA3
	dec l
	ld (hl),BOB0_L7_DATA2
	dec l
	ld (hl),BOB0_L7_DATA1
	set 5,h		;	LB e8 11101000 set 5,h	
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LB_DATA2
	inc l
	ld (hl),BOB0_LB_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	res 3,h		;	LA e0 11100000 res 3,h	
	ld (hl),BOB0_LA_DATA4
	dec l
	ld (hl),BOB0_LA_DATA3
	dec l
	ld (hl),BOB0_LA_DATA2
	dec l
	ld (hl),BOB0_LA_DATA1
	set 4,h		;	LC f0 11110000 set 4,h	
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LC_DATA2
	inc l
	ld (hl),BOB0_LC_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	set 3,h		;	LD f8 11111000 set 3,h	
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LD_DATA3
	dec l
	ld (hl),BOB0_LD_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	add hl,bc	;	LE c0 11000000 add hl,bc      
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LE_DATA2
	inc l
	ld (hl),BOB0_LE_DATA3
	inc l
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	set 3,h		;	LF c8 11001000 set 3,h	
	dec l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	dec l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 d8 11011000
;	33 E1 1F CC      CC	 33 L2 e8 11101000 set 5,h res 4,h
;	11 CF BF 88      EE	 77 L1 e0 11100000 res 3,h
;	67 6B BF 6E      88	 11 L3 f0 11110000 set 4,h
;	56 5F FF EE      88	 11 L4 f8 11111000 set 3,h
;	CF BF FF FF		    L5 c0 11000000 add hl,bc
;	8F BF FF FF		    L7 d0 11010000 set 4,h
;	DF FF EE BB		    L8 d8 11011000 set 3,h
;	FD 7F FF 55		    L6 c8 11001000 res 4,h
;	DF BF DD 77		    LA e8 11101000 set 5,h
;	FF 5F FF DD		    L9 e0 11100000 res 3,h
;	77 FF AA AA      88	 11 LB f0 11110000 set 4,h 
;	77 55 55 66      88	 11 LC f8 11111000 set 3,h
;	33 AA AA CC      CC	 33 LD c0 11000000 add hl,bc
;	11 DD 77 88      EE	 77 LE c8 11001000 set 3,h
;	00 77 EE 00	  88 11     LF d0 11010000 set 4,h res 3,h
DRAW3_BOB0
; ---------------------------
	pop hl	;	L0 d8 11011000		
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 5,h		;	L2 e8 11101000 set 5,h res 4,h
	res 4,h
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L2_DATA3
	dec l
	ld (hl),BOB0_L2_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	res 3,h		;	L1 e0 11100000 res 3,h	
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L1_DATA2
	inc l
	ld (hl),BOB0_L1_DATA3
	inc l
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	set 4,h		;	L3 f0 11110000 set 4,h	
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L3_DATA3
	dec l
	ld (hl),BOB0_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	set 3,h		;	L4 f8 11111000 set 3,h	
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L4_DATA2
	inc l
	ld (hl),BOB0_L4_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	add hl,bc	;	L5 c0 11000000 add hl,bc      
	ld (hl),BOB0_L5_DATA4
	dec l
	ld (hl),BOB0_L5_DATA3
	dec l
	ld (hl),BOB0_L5_DATA2
	dec l
	ld (hl),BOB0_L5_DATA1
	set 4,h		;	L7 d0 11010000 set 4,h	
	ld (hl),BOB0_L7_DATA1
	inc l
	ld (hl),BOB0_L7_DATA2
	inc l
	ld (hl),BOB0_L7_DATA3
	inc l
	ld (hl),BOB0_L7_DATA4
	set 3,h		;	L8 d8 11011000 set 3,h	
	ld (hl),BOB0_L8_DATA4
	dec l
	ld (hl),BOB0_L8_DATA3
	dec l
	ld (hl),BOB0_L8_DATA2
	dec l
	ld (hl),BOB0_L8_DATA1
	res 4,h		;	L6 c8 11001000 res 4,h	
	ld (hl),BOB0_L6_DATA1
	inc l
	ld (hl),BOB0_L6_DATA2
	inc l
	ld (hl),BOB0_L6_DATA3
	inc l
	ld (hl),BOB0_L6_DATA4
	set 5,h		;	LA e8 11101000 set 5,h	
	ld (hl),BOB0_LA_DATA4
	dec l
	ld (hl),BOB0_LA_DATA3
	dec l
	ld (hl),BOB0_LA_DATA2
	dec l
	ld (hl),BOB0_LA_DATA1
	res 3,h		;	L9 e0 11100000 res 3,h	
	ld (hl),BOB0_L9_DATA1
	inc l
	ld (hl),BOB0_L9_DATA2
	inc l
	ld (hl),BOB0_L9_DATA3
	inc l
	ld (hl),BOB0_L9_DATA4
	set 4,h		;	LB f0 11110000 set 4,h	
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LB_DATA3
	dec l
	ld (hl),BOB0_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	set 3,h		;	LC f8 11111000 set 3,h	
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LC_DATA2
	inc l
	ld (hl),BOB0_LC_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	add hl,bc	;	LD c0 11000000 add hl,bc      
	res 4,h
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LD_DATA3
	dec l
	ld (hl),BOB0_LD_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	set 3,h		;	LE c8 11001000 set 3,h	
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LE_DATA2
	inc l
	ld (hl),BOB0_LE_DATA3
	inc l
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	set 4,h		;	LF d0 11010000 set 4,h res 3,h
	res 3,h
	dec l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	dec l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 e0 11100000
;	11 CF BF 88      EE	 77 L1 e8 11101000 set 3,h
;	33 E1 1F CC      CC	 33 L2 f0 11110000 set 4,h res 3,h
;	67 6B BF 6E      88	 11 L3 f8 11111000 set 3,h
;	56 5F FF EE      88	 11 L4 c0 11000000 add hl,bc
;	FD 7F FF 55		    L6 d0 11010000 set 4,h
;	8F BF FF FF		    L7 d8 11011000 set 3,h
;	CF BF FF FF		    L5 c8 11001000 res 4,h
;	FF 5F FF DD		    L9 e8 11101000 set 5,h
;	DF FF EE BB		    L8 e0 11100000 res 3,h
;	DF BF DD 77		    LA f0 11110000 set 4,h
;	77 FF AA AA      88	 11 LB f8 11111000 set 3,h
;	77 55 55 66      88	 11 LC c0 11000000 add hl,bc
;	11 DD 77 88      EE	 77 LE d0 11010000 set 4,h
;	00 77 EE 00	  88 11     LF d8 11011000 set 3,h
;	33 AA AA CC      CC	 33 LD c8 11001000 res 4,h
DRAW4_BOB0
; ---------------------------
	pop hl	;	L0 e0 11100000		
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 3,h		;	L1 e8 11101000 set 3,h	
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L1_DATA3
	dec l
	ld (hl),BOB0_L1_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	set 4,h		;	L2 f0 11110000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L2_DATA2
	inc l
	ld (hl),BOB0_L2_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	set 3,h		;	L3 f8 11111000 set 3,h	
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L3_DATA3
	dec l
	ld (hl),BOB0_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	add hl,bc	;	L4 c0 11000000 add hl,bc      
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L4_DATA2
	inc l
	ld (hl),BOB0_L4_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	set 4,h		;	L6 d0 11010000 set 4,h	
	ld (hl),BOB0_L6_DATA4
	dec l
	ld (hl),BOB0_L6_DATA3
	dec l
	ld (hl),BOB0_L6_DATA2
	dec l
	ld (hl),BOB0_L6_DATA1
	set 3,h		;	L7 d8 11011000 set 3,h	
	ld (hl),BOB0_L7_DATA1
	inc l
	ld (hl),BOB0_L7_DATA2
	inc l
	ld (hl),BOB0_L7_DATA3
	inc l
	ld (hl),BOB0_L7_DATA4
	res 4,h		;	L5 c8 11001000 res 4,h	
	ld (hl),BOB0_L5_DATA4
	dec l
	ld (hl),BOB0_L5_DATA3
	dec l
	ld (hl),BOB0_L5_DATA2
	dec l
	ld (hl),BOB0_L5_DATA1
	set 5,h		;	L9 e8 11101000 set 5,h	
	ld (hl),BOB0_L9_DATA1
	inc l
	ld (hl),BOB0_L9_DATA2
	inc l
	ld (hl),BOB0_L9_DATA3
	inc l
	ld (hl),BOB0_L9_DATA4
	res 3,h		;	L8 e0 11100000 res 3,h	
	ld (hl),BOB0_L8_DATA4
	dec l
	ld (hl),BOB0_L8_DATA3
	dec l
	ld (hl),BOB0_L8_DATA2
	dec l
	ld (hl),BOB0_L8_DATA1
	set 4,h		;	LA f0 11110000 set 4,h	
	ld (hl),BOB0_LA_DATA1
	inc l
	ld (hl),BOB0_LA_DATA2
	inc l
	ld (hl),BOB0_LA_DATA3
	inc l
	ld (hl),BOB0_LA_DATA4
	set 3,h		;	LB f8 11111000 set 3,h	
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LB_DATA3
	dec l
	ld (hl),BOB0_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	add hl,bc	;	LC c0 11000000 add hl,bc      
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LC_DATA2
	inc l
	ld (hl),BOB0_LC_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	set 4,h		;	LE d0 11010000 set 4,h	
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LE_DATA3
	dec l
	ld (hl),BOB0_LE_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	set 3,h		;	LF d8 11011000 set 3,h	
	inc l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	inc l
	res 4,h		;	LD c8 11001000 res 4,h	
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LD_DATA3
	dec l
	ld (hl),BOB0_LD_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 e8 11101000
;	11 CF BF 88      EE	 77 L1 f0 11110000 set 4,h res 3,h
;	33 E1 1F CC      CC	 33 L2 f8 11111000 set 3,h
;	67 6B BF 6E      88	 11 L3 c0 11000000 add hl,bc
;	CF BF FF FF		    L5 d0 11010000 set 4,h
;	FD 7F FF 55		    L6 d8 11011000 set 3,h
;	56 5F FF EE      88	 11 L4 c8 11001000 res 4,h
;	DF FF EE BB		    L8 e8 11101000 set 5,h
;	8F BF FF FF		    L7 e0 11100000 res 3,h
;	FF 5F FF DD		    L9 f0 11110000 set 4,h
;	DF BF DD 77		    LA f8 11111000 set 3,h
;	77 FF AA AA      88	 11 LB c0 11000000 add hl,bc
;	33 AA AA CC      CC	 33 LD d0 11010000 set 4,h
;	11 DD 77 88      EE	 77 LE d8 11011000 set 3,h
;	77 55 55 66      88	 11 LC c8 11001000 res 4,h
;	00 77 EE 00	  88 11     LF e0 11100000 set 5,h res 3,h
DRAW5_BOB0
; ---------------------------
	pop hl	;	L0 e8 11101000		 
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 4,h		;	L1 f0 11110000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L1_DATA3
	dec l
	ld (hl),BOB0_L1_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	set 3,h		;	L2 f8 11111000 set 3,h	 
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L2_DATA2
	inc l
	ld (hl),BOB0_L2_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	add hl,bc	;	L3 c0 11000000 add hl,bc       
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L3_DATA3
	dec l
	ld (hl),BOB0_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	set 4,h		;	L5 d0 11010000 set 4,h	 
	ld (hl),BOB0_L5_DATA1
	inc l
	ld (hl),BOB0_L5_DATA2
	inc l
	ld (hl),BOB0_L5_DATA3
	inc l
	ld (hl),BOB0_L5_DATA4
	set 3,h		;	L6 d8 11011000 set 3,h	 
	ld (hl),BOB0_L6_DATA4
	dec l
	ld (hl),BOB0_L6_DATA3
	dec l
	ld (hl),BOB0_L6_DATA2
	dec l
	ld (hl),BOB0_L6_DATA1
	res 4,h		;	L4 c8 11001000 res 4,h	 
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L4_DATA2
	inc l
	ld (hl),BOB0_L4_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	set 5,h		;	L8 e8 11101000 set 5,h	 
	ld (hl),BOB0_L8_DATA4
	dec l
	ld (hl),BOB0_L8_DATA3
	dec l
	ld (hl),BOB0_L8_DATA2
	dec l
	ld (hl),BOB0_L8_DATA1
	res 3,h		;	L7 e0 11100000 res 3,h	 
	ld (hl),BOB0_L7_DATA1
	inc l
	ld (hl),BOB0_L7_DATA2
	inc l
	ld (hl),BOB0_L7_DATA3
	inc l
	ld (hl),BOB0_L7_DATA4
	set 4,h		;	L9 f0 11110000 set 4,h	 
	ld (hl),BOB0_L9_DATA4
	dec l
	ld (hl),BOB0_L9_DATA3
	dec l
	ld (hl),BOB0_L9_DATA2
	dec l
	ld (hl),BOB0_L9_DATA1
	set 3,h		;	LA f8 11111000 set 3,h	 
	ld (hl),BOB0_LA_DATA1
	inc l
	ld (hl),BOB0_LA_DATA2
	inc l
	ld (hl),BOB0_LA_DATA3
	inc l
	ld (hl),BOB0_LA_DATA4
	add hl,bc	;	LB c0 11000000 add hl,bc       
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LB_DATA3
	dec l
	ld (hl),BOB0_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	set 4,h		;	LD d0 11010000 set 4,h	 
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LD_DATA2
	inc l
	ld (hl),BOB0_LD_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	set 3,h		;	LE d8 11011000 set 3,h	 
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LE_DATA3
	dec l
	ld (hl),BOB0_LE_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	res 4,h		;	LC c8 11001000 res 4,h	 
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LC_DATA2
	inc l
	ld (hl),BOB0_LC_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	set 5,h		;	LF e0 11100000 set 5,h res 3,h
	res 3,h
	dec l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	dec l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 f0 11110000
;	11 CF BF 88      EE	 77 L1 f8 11111000 set 3,h
;	33 E1 1F CC      CC	 33 L2 c0 11000000 add hl,bc
;	56 5F FF EE      88	 11 L4 d0 11010000 set 4,h
;	CF BF FF FF		    L5 d8 11011000 set 3,h
;	67 6B BF 6E      88	 11 L3 c8 11001000 res 4,h
;	8F BF FF FF		    L7 e8 11101000 set 5,h
;	FD 7F FF 55		    L6 e0 11100000 res 3,h
;	DF FF EE BB		    L8 f0 11110000 set 4,h 
;	FF 5F FF DD		    L9 f8 11111000 set 3,h
;	DF BF DD 77		    LA c0 11000000 add hl,bc
;	77 55 55 66      88	 11 LC d0 11010000 set 4,h
;	33 AA AA CC      CC	 33 LD d8 11011000 set 3,h
;	77 FF AA AA      88	 11 LB c8 11001000 res 4,h
;	00 77 EE 00	  88 11     LF e8 11101000 set 5,h
;	11 DD 77 88      EE	 77 LE e0 11100000 res 3,h
DRAW6_BOB0
; ---------------------------
	pop hl		;	L0 f0 11110000	  
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	set 3,h		;	L1 f8 11111000 set 3,h  
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L1_DATA3
	dec l
	ld (hl),BOB0_L1_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	add hl,bc	;	L2 c0 11000000 add hl,bc
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L2_DATA2
	inc l
	ld (hl),BOB0_L2_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	set 4,h		;	L4 d0 11010000 set 4,h  
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L4_DATA3
	dec l
	ld (hl),BOB0_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	set 3,h		;	L5 d8 11011000 set 3,h  
	ld (hl),BOB0_L5_DATA1
	inc l
	ld (hl),BOB0_L5_DATA2
	inc l
	ld (hl),BOB0_L5_DATA3
	inc l
	ld (hl),BOB0_L5_DATA4
	res 4,h		;	L3 c8 11001000 res 4,h  
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L3_DATA3
	dec l
	ld (hl),BOB0_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	set 5,h		;	L7 e8 11101000 set 5,h  
	ld (hl),BOB0_L7_DATA1
	inc l
	ld (hl),BOB0_L7_DATA2
	inc l
	ld (hl),BOB0_L7_DATA3
	inc l
	ld (hl),BOB0_L7_DATA4
	res 3,h		;	L6 e0 11100000 res 3,h  
	ld (hl),BOB0_L6_DATA4
	dec l
	ld (hl),BOB0_L6_DATA3
	dec l
	ld (hl),BOB0_L6_DATA2
	dec l
	ld (hl),BOB0_L6_DATA1
	set 4,h		;	L8 f0 11110000 set 4,h  
	ld (hl),BOB0_L8_DATA1
	inc l
	ld (hl),BOB0_L8_DATA2
	inc l
	ld (hl),BOB0_L8_DATA3
	inc l
	ld (hl),BOB0_L8_DATA4
	set 3,h		;	L9 f8 11111000 set 3,h  
	ld (hl),BOB0_L9_DATA4
	dec l
	ld (hl),BOB0_L9_DATA3
	dec l
	ld (hl),BOB0_L9_DATA2
	dec l
	ld (hl),BOB0_L9_DATA1
	add hl,bc	;	LA c0 11000000 add hl,bc
	ld (hl),BOB0_LA_DATA1
	inc l
	ld (hl),BOB0_LA_DATA2
	inc l
	ld (hl),BOB0_LA_DATA3
	inc l
	ld (hl),BOB0_LA_DATA4
	set 4,h		;	LC d0 11010000 set 4,h  
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LC_DATA3
	dec l
	ld (hl),BOB0_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	set 3,h		;	LD d8 11011000 set 3,h  
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LD_DATA2
	inc l
	ld (hl),BOB0_LD_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	res 4,h		;	LB c8 11001000 res 4,h  
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LB_DATA3
	dec l
	ld (hl),BOB0_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	set 5,h		;	LF e8 11101000 set 5,h  
	inc l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	inc l
	res 3,h		;	LE e0 11100000 res 3,h  
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LE_DATA3
	dec l
	ld (hl),BOB0_LE_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	ret
; ---------------------------
;	00 77 EE 00	  88 11     L0 f8 11111000
;	11 CF BF 88      EE	 77 L1 c0 11000000 add hl,bc
;	67 6B BF 6E      88	 11 L3 d0 11010000 set 4,h
;	56 5F FF EE      88	 11 L4 d8 11011000 set 3,h
;	33 E1 1F CC      CC	 33 L2 c8 11001000 res 4,h
;	FD 7F FF 55		    L6 e8 11101000 set 5,h
;	CF BF FF FF		    L5 e0 11100000 res 3,h
;	8F BF FF FF		    L7 f0 11110000 set 4,h
;	DF FF EE BB		    L8 f8 11111000 set 3,h
;	FF 5F FF DD		    L9 c0 11000000 add hl,bc
;	77 FF AA AA      88	 11 LB d0 11010000 set 4,h
;	77 55 55 66      88	 11 LC d8 11011000 set 3,h
;	DF BF DD 77		    LA c8 11001000 res 4,h
;	11 DD 77 88      EE	 77 LE e8 11101000 set 5,h
;	33 AA AA CC      CC	 33 LD e0 11100000 res 3,h
;	00 77 EE 00	  88 11     LF f0 11110000 set 4,h
DRAW7_BOB0
; ---------------------------
	pop hl		;	L0 f8 11111000	   
;	inc l
	ld de,&8811
	ld a,(hl)
	and d
	or BOB0_L0_DATA2
	ld (hl),a
	inc l
	ld a,(hl)
	and e
	or BOB0_L0_DATA3
	ld (hl),a
	inc l
	add hl,bc	;	L1 c0 11000000 add hl,bc
	ld a,(hl)
	and MASK77
	or BOB0_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L1_DATA3
	dec l
	ld (hl),BOB0_L1_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_L1_DATA1
	ld (hl),a
	set 4,h		;	L3 d0 11010000 set 4,h  
	ld a,(hl)
	and d
	or BOB0_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L3_DATA2
	inc l
	ld (hl),BOB0_L3_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_L3_DATA4
	ld (hl),a
	set 3,h		;	L4 d8 11011000 set 3,h  
	ld a,(hl)
	and e
	or BOB0_L4_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_L4_DATA3
	dec l
	ld (hl),BOB0_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_L4_DATA1
	ld (hl),a
	res 4,h		;	L2 c8 11001000 res 4,h  
	ld a,(hl)
	and MASKCC
	or BOB0_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_L2_DATA2
	inc l
	ld (hl),BOB0_L2_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_L2_DATA4
	ld (hl),a
	set 5,h		;	L6 e8 11101000 set 5,h  
	ld (hl),BOB0_L6_DATA4
	dec l
	ld (hl),BOB0_L6_DATA3
	dec l
	ld (hl),BOB0_L6_DATA2
	dec l
	ld (hl),BOB0_L6_DATA1
	res 3,h		;	L5 e0 11100000 res 3,h  
	ld (hl),BOB0_L5_DATA1
	inc l
	ld (hl),BOB0_L5_DATA2
	inc l
	ld (hl),BOB0_L5_DATA3
	inc l
	ld (hl),BOB0_L5_DATA4
	set 4,h		;	L7 f0 11110000 set 4,h  
	ld (hl),BOB0_L7_DATA4
	dec l
	ld (hl),BOB0_L7_DATA3
	dec l
	ld (hl),BOB0_L7_DATA2
	dec l
	ld (hl),BOB0_L7_DATA1
	set 3,h		;	L8 f8 11111000 set 3,h  
	ld (hl),BOB0_L8_DATA1
	inc l
	ld (hl),BOB0_L8_DATA2
	inc l
	ld (hl),BOB0_L8_DATA3
	inc l
	ld (hl),BOB0_L8_DATA4
	add hl,bc	;	L9 c0 11000000 add hl,bc
	ld (hl),BOB0_L9_DATA4
	dec l
	ld (hl),BOB0_L9_DATA3
	dec l
	ld (hl),BOB0_L9_DATA2
	dec l
	ld (hl),BOB0_L9_DATA1
	set 4,h		;	LB d0 11010000 set 4,h  
	ld a,(hl)
	and d
	or BOB0_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LB_DATA2
	inc l
	ld (hl),BOB0_LB_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB0_LB_DATA4
	ld (hl),a
	set 3,h		;	LC d8 11011000 set 3,h  
	ld a,(hl)
	and e
	or BOB0_LC_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LC_DATA3
	dec l
	ld (hl),BOB0_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB0_LC_DATA1
	ld (hl),a
	res 4,h		;	LA c8 11001000 res 4,h  
	ld (hl),BOB0_LA_DATA1
	inc l
	ld (hl),BOB0_LA_DATA2
	inc l
	ld (hl),BOB0_LA_DATA3
	inc l
	ld (hl),BOB0_LA_DATA4
	set 5,h		;	LE e8 11101000 set 5,h  
	ld a,(hl)
	and MASK77
	or BOB0_LE_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB0_LE_DATA3
	dec l
	ld (hl),BOB0_LE_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB0_LE_DATA1
	ld (hl),a
	res 3,h		;	LD e0 11100000 res 3,h  
	ld a,(hl)
	and MASKCC
	or BOB0_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB0_LD_DATA2
	inc l
	ld (hl),BOB0_LD_DATA3
	inc l
	ld a,(hl)
	and MASK33
	or BOB0_LD_DATA4
	ld (hl),a
	set 4,h		;	LF f0 11110000 set 4,h  
	dec l
	ld a,(hl)
	and e
	or BOB0_LF_DATA3
	ld (hl),a
	dec l
	ld a,(hl)
	and d
	or BOB0_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;BALL_1

;           33 FF            CC            c0
;           CC 11 CC                33     c8
;        11 34 0C EE     EE         11     d0
;        22 E1 0A 77     CC                d8
;        23 C3 0C 77     CC                e0
;        54 A5 08 FF 88  88            77  e8
;        54 0F 15 77 88  88            77  f0
;        45 0E 2A FF 88  88            77  f8
;        45 05 11 EE 88  88            77  c0
;        44 08 BB EE 88  88            77  c8
;        66 11 77 55 88  88            77  d0
;        33 22 EE 9B     CC                d8
;        33 FF FF 73     CC                e0
;        11 FF EE 6E     EE         11     e8
;           FF 99 CC                33     f0
;           33 FF            CC            f8
; ---------------------------
BOB1_L0_DATA2  equ &33
BOB1_L0_DATA3  equ &FF
BOB1_L1_DATA2  equ &CC
BOB1_L1_DATA3  equ &11
BOB1_L1_DATA4  equ &CC
BOB1_L2_DATA1  equ &11
BOB1_L2_DATA2  equ &34
BOB1_L2_DATA3  equ &0C
BOB1_L2_DATA4  equ &EE
BOB1_L3_DATA1  equ &22
BOB1_L3_DATA2  equ &E1
BOB1_L3_DATA3  equ &0A
BOB1_L3_DATA4  equ &77
BOB1_L4_DATA1  equ &23
BOB1_L4_DATA2  equ &C3
BOB1_L4_DATA3  equ &0C
BOB1_L4_DATA4  equ &77
BOB1_L5_DATA1  equ &54
BOB1_L5_DATA2  equ &A5
BOB1_L5_DATA3  equ &08
BOB1_L5_DATA4  equ &FF
BOB1_L5_DATA5  equ &88
BOB1_L6_DATA1  equ &54
BOB1_L6_DATA2  equ &0F
BOB1_L6_DATA3  equ &15
BOB1_L6_DATA4  equ &77
BOB1_L6_DATA5  equ &88
BOB1_L7_DATA1  equ &45
BOB1_L7_DATA2  equ &0E
BOB1_L7_DATA3  equ &2A
BOB1_L7_DATA4  equ &FF
BOB1_L7_DATA5  equ &88

BOB1_L8_DATA1  equ &45
BOB1_L8_DATA2  equ &05
BOB1_L8_DATA3  equ &11
BOB1_L8_DATA4  equ &EE
BOB1_L8_DATA5  equ &88
BOB1_L9_DATA1  equ &44
BOB1_L9_DATA2  equ &08
BOB1_L9_DATA3  equ &BB
BOB1_L9_DATA4  equ &EE
BOB1_L9_DATA5  equ &88
BOB1_LA_DATA1  equ &66
BOB1_LA_DATA2  equ &11
BOB1_LA_DATA3  equ &77
BOB1_LA_DATA4  equ &55
BOB1_LA_DATA5  equ &88
BOB1_LB_DATA1  equ &33
BOB1_LB_DATA2  equ &22
BOB1_LB_DATA3  equ &EE
BOB1_LB_DATA4  equ &9B
BOB1_LC_DATA1  equ &33
BOB1_LC_DATA2  equ &FF
BOB1_LC_DATA3  equ &FF
BOB1_LC_DATA4  equ &73
BOB1_LD_DATA1  equ &11
BOB1_LD_DATA2  equ &FF
BOB1_LD_DATA3  equ &EE
BOB1_LD_DATA4  equ &6E
BOB1_LE_DATA2  equ &FF
BOB1_LE_DATA3  equ &99
BOB1_LE_DATA4  equ &CC
BOB1_LF_DATA2  equ &33
BOB1_LF_DATA3  equ &FF
; ---------------------------
;	   33 FF	   CC	   L0 c0 11000000
;	11 F8 0F EE    EE	 11    L2 d0 11010000 set 4,h
;	33 3D 5F BF    CC	       L3 d8 11011000 set 3,h
;	   EF 5F CC	       33    L1 c8 11001000 res 4,h
;	67 5F FF FF 88 88	    77 L5 e8 11101000 set 5,h
;	23 A7 FF FF    CC	       L4 e0 11100000 res 3,h
;	76 BF FF AA 88 88	    77 L6 f0 11110000 set 4,h
;	47 5F FF FF 88 88	    77 L7 f8 11111000 set 3,h
;	67 FF FF 55 88 88	    77 L8 c0 11000000 add hl,bc
;	67 DF EE BB 88 88	    77 LA d0 11010000 set 4,h
;	33 FF DD 55    CC	       LB d8 11011000 set 3,h
;	77 AF FF EE 88 88	    77 L9 c8 11001000 res 4,h
;	11 DD 55 66    EE	 11    LD e8 11101000 set 5,h
;	33 AA AA BB    CC	       LC e0 11100000 res 3,h
;	   EE BB CC	       33    LE f0 11110000 set 4,h
;	   33 FF	   CC	   LF f8 11111000 set 3,h
DRAW0_BOB1
; ---------------------------
	pop hl		;	L0 c0 11000000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 4,h		;	L2 d0 11010000 set 4,h
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_L2_DATA3
	dec l
	ld (hl),BOB1_L2_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	set 3,h		;	L3 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB1_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L3_DATA2
	inc l
	ld (hl),BOB1_L3_DATA3
	inc l
	ld (hl),BOB1_L3_DATA4
	res 4,h		;	L1 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L1_DATA3
	dec l
	ld (hl),d
	dec l
	set 5,h		;	L5 e8 11101000 set 5,h
	ld de,&8877
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L5_DATA2
	inc l
	ld (hl),BOB1_L5_DATA3
	inc l
	ld (hl),BOB1_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		;	L4 e0 11100000 res 3,h
	dec l
	ld (hl),BOB1_L4_DATA4
	dec l
	ld (hl),BOB1_L4_DATA3
	dec l
	ld (hl),BOB1_L4_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB1_L4_DATA1
	ld (hl),a
	set 4,h		;	L6 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L6_DATA2
	inc l
	ld (hl),BOB1_L6_DATA3
	inc l
	ld (hl),BOB1_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	L7 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L7_DATA4
	dec l
	ld (hl),BOB1_L7_DATA3
	dec l
	ld (hl),BOB1_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	add hl,bc	;	L8 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L8_DATA2
	inc l
	ld (hl),BOB1_L8_DATA3
	inc l
	ld (hl),BOB1_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;	77 LA d0 11010000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LA_DATA4
	dec l
	ld (hl),BOB1_LA_DATA3
	dec l
	ld (hl),BOB1_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	set 3,h		;	LB d8 11011000 set 3,h
	ld a,(hl)
	and MASKCC
	or BOB1_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LB_DATA2
	inc l
	ld (hl),BOB1_LB_DATA3
	inc l
	ld (hl),BOB1_LB_DATA4
	inc l
	res 4,h		;	L9 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L9_DATA4
	dec l
	ld (hl),BOB1_L9_DATA3
	dec l
	ld (hl),BOB1_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	set 5,h		;	LD e8 11101000 set 5,h
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LD_DATA2
	inc l
	ld (hl),BOB1_LD_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	res 3,h		;	LC e0 11100000 res 3,h
	ld de,&cc33
	ld a,(hl)
	and MASK11
	or BOB1_LC_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_LC_DATA3
	dec l
	ld (hl),BOB1_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;    EE BB CC	       33    LE f0 11110000 set 4,h
	inc l
	ld (hl),BOB1_LE_DATA2
	inc l
	ld (hl),BOB1_LE_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;    33 FF	   CC	   LF f8 11111000 set 3,h
	dec l
	ld (hl),BOB1_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;	   33 FF	    CC	    L0 c8 11001000	  
;	11 F8 0F EE     EE	 11     L2 d8 11011000 set 4,h  
;	   EF 5F CC		33     L1 d0 11010000 res 3,h  
;	67 5F FF FF 88  88	    77  L5 f0 11110000 set 5,h  
;	33 3D 5F BF     CC		L3 e0 11100000 res 4,h  
;	23 A7 FF FF     CC		L4 e8 11101000 set 3,h  
;	76 BF FF AA 88  88	    77  L6 f8 11111000 set 4,h  
;	47 5F FF FF 88  88	    77  L7 c0 11000000 add hl,bc
;	77 AF FF EE 88  88	    77  L9 d0 11010000 set 4,h  
;	67 DF EE BB 88  88	    77  LA d8 11011000 set 3,h  
;	67 FF FF 55 88  88	    77  L8 c8 11001000 res 4,h  
;	33 AA AA BB     CC		LC e8 11101000 set 5,h  
;	33 FF DD 55     CC		LB e0 11100000 res 3,h  
;	11 DD 55 66     EE	 11     LD f0 11110000 set 4,h  
;	   EE BB CC		33     LE f8 11111000 set 3,h  
;	   33 FF	    CC	    LF c0 11000000 add hl,bc
; ---------------------------
DRAW1_BOB1
; ---------------------------
	pop hl	;    33 FF	    CC	    L0 c8 11001000000000    
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 4,h		; 11 F8 0F EE     EE	 11     L2 d8 11011000 set 4,h  
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_L2_DATA3
	dec l
	ld (hl),BOB1_L2_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	res 3,h		;    EF 5F CC		33     L1 d0 11010000 res 3,h  
	inc l
	ld (hl),d
	inc l
	ld (hl),BOB1_L1_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	inc l
	set 5,h		; 67 5F FF FF 88  88	    77  L5 f0 11110000 set 5,h  
	ld de,&8877
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L5_DATA4
	dec l
	ld (hl),BOB1_L5_DATA3
	dec l
	ld (hl),BOB1_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	res 4,h		; 33 3D 5F BF     CC		L3 e0 11100000 res 4,h  
	ld a,(hl)
	and MASKCC
	or BOB1_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L3_DATA2
	inc l
	ld (hl),BOB1_L3_DATA3
	inc l
	ld (hl),BOB1_L3_DATA4
	set 3,h		; 23 A7 FF FF     CC		L4 e8 11101000 set 3,h  
	ld (hl),BOB1_L4_DATA4
	dec l
	ld (hl),BOB1_L4_DATA3
	dec l
	ld (hl),BOB1_L4_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB1_L4_DATA1
	ld (hl),a
	set 4,h		; 76 BF FF AA 88  88	    77  L6 f8 11111000 set 4,h  
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L6_DATA2
	inc l
	ld (hl),BOB1_L6_DATA3
	inc l
	ld (hl),BOB1_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc	;	L7 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L7_DATA4
	dec l
	ld (hl),BOB1_L7_DATA3
	dec l
	ld (hl),BOB1_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	set 4,h		;	L9 d0 11010000 set 4,h  
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L9_DATA2
	inc l
	ld (hl),BOB1_L9_DATA3
	inc l
	ld (hl),BOB1_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		; 67 DF EE BB 88  88	    77  LA d8 11011000 set 3,h  
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LA_DATA4
	dec l
	ld (hl),BOB1_LA_DATA3
	dec l
	ld (hl),BOB1_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	res 4,h		; 67 FF FF 55 88  88	    77  L8 c8 11001000 res 4,h  
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L8_DATA2
	inc l
	ld (hl),BOB1_L8_DATA3
	inc l
	ld (hl),BOB1_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 5,h		; 33 AA AA BB     CC		LC e8 11101000 set 5,h  
	ld de,&cc33
	dec l
	ld (hl),BOB1_LC_DATA4
	dec l
	ld (hl),BOB1_LC_DATA3
	dec l
	ld (hl),BOB1_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 3,h		; 33 FF DD 55     CC		LB e0 11100000 res 3,h  
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LB_DATA2
	inc l
	ld (hl),BOB1_LB_DATA3
	inc l
	ld (hl),BOB1_LB_DATA4
	set 4,h		; 11 DD 55 66     EE	 11     LD f0 11110000 set 4,h  
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_LD_DATA3
	dec l
	ld (hl),BOB1_LD_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	set 3,h		;    EE BB CC		33     LE f8 11111000 set 3,h  
	inc l
	ld (hl),BOB1_LE_DATA2
	inc l
	ld (hl),BOB1_LE_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc	;	LF c0 11000000 add hl,bc
	dec l
	ld (hl),BOB1_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;	   33 FF	    CC	    L0 d0 11010000
;	   EF 5F CC		33     L1 d8 11011000 set 3,h
;	33 3D 5F BF     CC		L3 e8 11101000 set 5,h res 4,h
;	11 F8 0F EE     EE	 11     L2 e0 11100000 res 3,h
;	23 A7 FF FF     CC		L4 f0 11110000 set 4,h
;	67 5F FF FF 88  88	    77  L5 f8 11111000 set 3,h
;	76 BF FF AA 88  88	    77  L6 c0 11000000 add hl,bc
;	67 FF FF 55 88  88	    77  L8 d0 11010000 set 4,h
;	77 AF FF EE 88  88	    77  L9 d8 11011000 set 3,h
;	47 5F FF FF 88  88	    77  L7 c8 11001000 res 4,h
;	33 FF DD 55     CC		LB e8 11101000 set 5,h
;	67 DF EE BB 88  88	    77  LA e0 11100000 res 3,h
;	33 AA AA BB     CC		LC f0 11110000 set 4,h
;	11 DD 55 66     EE	 11     LD f8 11111000 set 3,h
;	   EE BB CC		33     LE c0 11000000 add hl,bc
;	   33 FF	    CC	    LF c8 11001000 set 3,h
DRAW2_BOB1
; ---------------------------
	pop hl	;    33 FF	    CC	    L0 d0 11010000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 3,h		;    EF 5F CC		33     L1 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L1_DATA3
	dec l
	ld (hl),d
	dec l
	set 5,h		; 33 3D 5F BF     CC		L3 e8 11101000 set 5,h res 4,h
	res 4,h
	ld a,(hl)
	and d
	or BOB1_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L3_DATA2
	inc l
	ld (hl),BOB1_L3_DATA3
	inc l
	ld (hl),BOB1_L3_DATA4
	res 3,h		; 11 F8 0F EE     EE	 11     L2 e0 11100000 res 3,h
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_L2_DATA3
	dec l
	ld (hl),BOB1_L2_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	set 4,h		; 23 A7 FF FF     CC		L4 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or BOB1_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L4_DATA2
	inc l
	ld (hl),BOB1_L4_DATA3
	inc l
	ld (hl),BOB1_L4_DATA4
	inc l
	set 3,h		; 67 5F FF FF 88  88	    77  L5 f8 11111000 set 3,h
	ld de,&8877
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L5_DATA4
	dec l
	ld (hl),BOB1_L5_DATA3
	dec l
	ld (hl),BOB1_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	add hl,bc	;	L6 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L6_DATA2
	inc l
	ld (hl),BOB1_L6_DATA3
	inc l
	ld (hl),BOB1_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		; 67 FF FF 55 88  88	    77  L8 d0 11010000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L8_DATA4
	dec l
	ld (hl),BOB1_L8_DATA3
	dec l
	ld (hl),BOB1_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	set 3,h		;	L9 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L9_DATA2
	inc l
	ld (hl),BOB1_L9_DATA3
	inc l
	ld (hl),BOB1_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h		; 47 5F FF FF 88  88	    77  L7 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L7_DATA4
	dec l
	ld (hl),BOB1_L7_DATA3
	dec l
	ld (hl),BOB1_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	set 5,h		; 33 FF DD 55     CC		LB e8 11101000 set 5,h
	ld a,(hl)
	and MASKCC
	or BOB1_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LB_DATA2
	inc l
	ld (hl),BOB1_LB_DATA3
	inc l
	ld (hl),BOB1_LB_DATA4
	inc l
	res 3,h		; 67 DF EE BB 88  88	    77  LA e0 11100000 res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LA_DATA4
	dec l
	ld (hl),BOB1_LA_DATA3
	dec l
	ld (hl),BOB1_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	set 4,h		; 33 AA AA BB     CC		LC f0 11110000 set 4,h
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LC_DATA2
	inc l
	ld (hl),BOB1_LC_DATA3
	inc l
	ld (hl),BOB1_LC_DATA4
	set 3,h		; 11 DD 55 66     EE	 11     LD f8 11111000 set 3,h
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_LD_DATA3
	dec l
	ld (hl),BOB1_LD_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	add hl,bc	;    EE BB CC		33     LE c0 11000000 add hl,bc
	inc l
	ld (hl),BOB1_LE_DATA2
	inc l
	ld (hl),BOB1_LE_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;    33 FF	    CC	    LF c8 11001000 set 3,h
	dec l
	ld (hl),BOB1_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;	   33 FF	    CC	    L0 d8 11011000
;	11 F8 0F EE     EE	 11     L2 e8 11101000 set 5,h res 4,h
;	   EF 5F CC		33     L1 e0 11100000 res 3,h
;	33 3D 5F BF     CC		L3 f0 11110000 set 4,h
;	23 A7 FF FF     CC		L4 f8 11111000 set 3,h
;	67 5F FF FF 88  88	    77  L5 c0 11000000 add hl,bc
;	47 5F FF FF 88  88	    77  L7 d0 11010000 set 4,h
;	67 FF FF 55 88  88	    77  L8 d8 11011000 set 3,h
;	76 BF FF AA 88  88	    77  L6 c8 11001000 res 4,h
;	67 DF EE BB 88  88	    77  LA e8 11101000 set 5,h
;	77 AF FF EE 88  88	    77  L9 e0 11100000 res 3,h
;	33 FF DD 55     CC		LB f0 11110000 set 4,h 
;	33 AA AA BB     CC		LC f8 11111000 set 3,h
;	11 DD 55 66     EE	 11     LD c0 11000000 add hl,bc
;	   EE BB CC		33     LE c8 11001000 set 3,h
;	   33 FF	    CC	    LF d0 11010000 set 4,h res 3,h
DRAW3_BOB1
; ---------------------------
	pop hl	;    33 FF	    CC	    L0 d8 11011000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 5,h		; 11 F8 0F EE     EE	 11     L2 e8 11101000 set 5,h res 4,h
	res 4,h
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_L2_DATA3
	dec l
	ld (hl),BOB1_L2_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	res 3,h		;    EF 5F CC		33     L1 e0 11100000 res 3,h
	inc l
	ld (hl),d
	inc l
	ld (hl),BOB1_L1_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		; 33 3D 5F BF     CC		L3 f0 11110000 set 4,h
	ld (hl),BOB1_L3_DATA4
	dec l
	ld (hl),BOB1_L3_DATA3
	dec l
	ld (hl),BOB1_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L3_DATA1
	ld (hl),a
	set 3,h		; 23 A7 FF FF     CC		L4 f8 11111000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L4_DATA2
	inc l
	ld (hl),BOB1_L4_DATA3
	inc l
	ld (hl),BOB1_L4_DATA4
	inc l
	add hl,bc	; 67 5F FF FF 88  88	    77  L5 c0 11000000 add hl,bc
	ld de,&8877
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L5_DATA4
	dec l
	ld (hl),BOB1_L5_DATA3
	dec l
	ld (hl),BOB1_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	set 4,h		; 47 5F FF FF 88  88	    77  L7 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L7_DATA2
	inc l
	ld (hl),BOB1_L7_DATA3
	inc l
	ld (hl),BOB1_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		; 67 FF FF 55 88  88	    77  L8 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L8_DATA4
	dec l
	ld (hl),BOB1_L8_DATA3
	dec l
	ld (hl),BOB1_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	res 4,h		;	L6 c8 11001000 res 4,h
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L6_DATA2
	inc l
	ld (hl),BOB1_L6_DATA3
	inc l
	ld (hl),BOB1_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 5,h		; 67 DF EE BB 88  88	    77  LA e8 11101000 set 5,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LA_DATA4
	dec l
	ld (hl),BOB1_LA_DATA3
	dec l
	ld (hl),BOB1_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	res 3,h		;	L9 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L9_DATA2
	inc l
	ld (hl),BOB1_L9_DATA3
	inc l
	ld (hl),BOB1_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		; 33 FF DD 55     CC		LB f0 11110000 set 4,h
	ld de,&cc33
	dec l
	ld (hl),BOB1_LB_DATA4
	dec l
	ld (hl),BOB1_LB_DATA3
	dec l
	ld (hl),BOB1_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		; 33 AA AA BB     CC		LC f8 11111000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LC_DATA2
	inc l
	ld (hl),BOB1_LC_DATA3
	inc l
	ld (hl),BOB1_LC_DATA4
	add hl,bc	; 11 DD 55 66     EE	 11     LD c0 11000000 add hl,bc
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_LD_DATA3
	dec l
	ld (hl),BOB1_LD_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	set 3,h		;    EE BB CC		33     LE c8 11001000 set 3,h
	inc l
	ld (hl),BOB1_LE_DATA2
	inc l
	ld (hl),BOB1_LE_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;    33 FF	    CC	    LF d0 11010000 set 4,h res 3,h
	res 3,h
	dec l
	ld (hl),BOB1_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;	   33 FF	    CC	    L0 e0 11100000
;	   EF 5F CC		33     L1 e8 11101000 set 3,h
;	11 F8 0F EE     EE	 11     L2 f0 11110000 set 4,h res 3,h
;	33 3D 5F BF     CC		L3 f8 11111000 set 3,h
;	23 A7 FF FF     CC		L4 c0 11000000 add hl,bc
;	76 BF FF AA 88  88	    77  L6 d0 11010000 set 4,h
;	47 5F FF FF 88  88	    77  L7 d8 11011000 set 3,h
;	67 5F FF FF 88  88	    77  L5 c8 11001000 res 4,h
;	77 AF FF EE 88  88	    77  L9 e8 11101000 set 5,h
;	67 FF FF 55 88  88	    77  L8 e0 11100000 res 3,h
;	67 DF EE BB 88  88	    77  LA f0 11110000 set 4,h
;	33 FF DD 55     CC		LB f8 11111000 set 3,h
;	33 AA AA BB     CC		LC c0 11000000 add hl,bc
;	   EE BB CC		33     LE d0 11010000 set 4,h
;	   33 FF	    CC	    LF d8 11011000 set 3,h
;	11 DD 55 66     EE	 11     LD c8 11001000 res 4,h
DRAW4_BOB1
; ---------------------------
	pop hl	;    33 FF	    CC	    L0 e0 11100000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 3,h		;    EF 5F CC		33     L1 e8 11101000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L1_DATA3
	dec l
	ld (hl),d
	dec l
	set 4,h		; 11 F8 0F EE     EE	 11     L2 f0 11110000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L2_DATA2
	inc l
	ld (hl),BOB1_L2_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	set 3,h		; 33 3D 5F BF     CC		L3 f8 11111000 set 3,h
	ld (hl),BOB1_L3_DATA4
	dec l
	ld (hl),BOB1_L3_DATA3
	dec l
	ld (hl),BOB1_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L3_DATA1
	ld (hl),a
	add hl,bc	; 23 A7 FF FF     CC		L4 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB1_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L4_DATA2
	inc l
	ld (hl),BOB1_L4_DATA3
	inc l
	ld (hl),BOB1_L4_DATA4
	inc l
	set 4,h		;	L6 d0 11010000 set 4,h
	ld de,&8877
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L6_DATA4
	dec l
	ld (hl),BOB1_L6_DATA3
	dec l
	ld (hl),BOB1_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	set 3,h		; 47 5F FF FF 88  88	    77  L7 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L7_DATA2
	inc l
	ld (hl),BOB1_L7_DATA3
	inc l
	ld (hl),BOB1_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h		; 67 5F FF FF 88  88	    77  L5 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L5_DATA4
	dec l
	ld (hl),BOB1_L5_DATA3
	dec l
	ld (hl),BOB1_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	set 5,h		;	L9 e8 11101000 set 5,h
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L9_DATA2
	inc l
	ld (hl),BOB1_L9_DATA3
	inc l
	ld (hl),BOB1_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		; 67 FF FF 55 88  88	    77  L8 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L8_DATA4
	dec l
	ld (hl),BOB1_L8_DATA3
	dec l
	ld (hl),BOB1_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	set 4,h		; 67 DF EE BB 88  88	    77  LA f0 11110000 set 4,h
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LA_DATA2
	inc l
	ld (hl),BOB1_LA_DATA3
	inc l
	ld (hl),BOB1_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		; LB f8 11111000 set 3,h
	ld de,&cc33
	dec l
	ld (hl),BOB1_LB_DATA4
	dec l
	ld (hl),BOB1_LB_DATA3
	dec l
	ld (hl),BOB1_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	add hl,bc	; 33 AA AA BB     CC		LC c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LC_DATA2
	inc l
	ld (hl),BOB1_LC_DATA3
	inc l
	ld (hl),BOB1_LC_DATA4
	set 4,h		;    EE BB CC		33     LE d0 11010000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LE_DATA3
	dec l
	ld (hl),BOB1_LE_DATA2
	dec l
	set 3,h		;    33 FF	    CC	    LF d8 11011000 set 3,h
	inc l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LF_DATA3
	inc l
	res 4,h		; 11 DD 55 66     EE	 11     LD c8 11001000 res 4,h
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB1_LD_DATA3
	dec l
	ld (hl),BOB1_LD_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	ret
; ---------------------------
;	   33 FF	    CC	    L0 e8 11101000
;	   EF 5F CC		33     L1 f0 11110000 set 4,h res 3,h
;	11 F8 0F EE     EE	 11     L2 f8 11111000 set 3,h
;	33 3D 5F BF     CC		L3 c0 11000000 add hl,bc
;	67 5F FF FF 88  88	    77  L5 d0 11010000 set 4,h
;	76 BF FF AA 88  88	    77  L6 d8 11011000 set 3,h
;	23 A7 FF FF     CC		L4 c8 11001000 res 4,h
;	67 FF FF 55 88  88	    77  L8 e8 11101000 set 5,h
;	47 5F FF FF 88  88	    77  L7 e0 11100000 res 3,h
;	77 AF FF EE 88  88	    77  L9 f0 11110000 set 4,h
;	67 DF EE BB 88  88	    77  LA f8 11111000 set 3,h
;	33 FF DD 55     CC		LB c0 11000000 add hl,bc
;	11 DD 55 66     EE	 11     LD d0 11010000 set 4,h
;	   EE BB CC		33     LE d8 11011000 set 3,h
;	33 AA AA BB     CC		LC c8 11001000 res 4,h
;	   33 FF	    CC	    LF e0 11100000 set 5,h res 3,h
DRAW5_BOB1
; ---------------------------
	pop hl	;    33 FF	    CC	    L0 e8 11101000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 4,h		;    EF 5F CC		33     L1 f0 11110000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L1_DATA3
	dec l
	ld (hl),d
	dec l
	set 3,h		; 11 F8 0F EE     EE	 11     L2 f8 11111000 set 3,h
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L2_DATA2
	inc l
	ld (hl),BOB1_L2_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	add hl,bc	; 33 3D 5F BF     CC		L3 c0 11000000 add hl,bc
	ld (hl),BOB1_L3_DATA4
	dec l
	ld (hl),BOB1_L3_DATA3
	dec l
	ld (hl),BOB1_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L3_DATA1
	ld (hl),a
	set 4,h		; 67 5F FF FF 88  88	    77  L5 d0 11010000 set 4,h
	ld de,&8877
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L5_DATA2
	inc l
	ld (hl),BOB1_L5_DATA3
	inc l
	ld (hl),BOB1_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	L6 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L6_DATA4
	dec l
	ld (hl),BOB1_L6_DATA3
	dec l
	ld (hl),BOB1_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	res 4,h		; 23 A7 FF FF     CC		L4 c8 11001000 res 4,h
	ld a,(hl)
	and MASKCC
	or BOB1_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L4_DATA2
	inc l
	ld (hl),BOB1_L4_DATA3
	inc l
	ld (hl),BOB1_L4_DATA4
	inc l
	set 5,h		; 67 FF FF 55 88  88	    77  L8 e8 11101000 set 5,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L8_DATA4
	dec l
	ld (hl),BOB1_L8_DATA3
	dec l
	ld (hl),BOB1_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	res 3,h		; 47 5F FF FF 88  88	    77  L7 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L7_DATA2
	inc l
	ld (hl),BOB1_L7_DATA3
	inc l
	ld (hl),BOB1_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;	L9 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L9_DATA4
	dec l
	ld (hl),BOB1_L9_DATA3
	dec l
	ld (hl),BOB1_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	set 3,h		; 67 DF EE BB 88  88	    77  LA f8 11111000 set 3,h
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LA_DATA2
	inc l
	ld (hl),BOB1_LA_DATA3
	inc l
	ld (hl),BOB1_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc	; 33 FF DD 55     CC		LB c0 11000000 add hl,bc
	ld de,&cc33
	dec l
	ld (hl),BOB1_LB_DATA4
	dec l
	ld (hl),BOB1_LB_DATA3
	dec l
	ld (hl),BOB1_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		; 11 DD 55 66     EE	 11     LD d0 11010000 set 4,h
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LD_DATA2
	inc l
	ld (hl),BOB1_LD_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	set 3,h		;    EE BB CC		33     LE d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LE_DATA3
	dec l
	ld (hl),BOB1_LE_DATA2
	dec l
	res 4,h		; 33 AA AA BB     CC		LC c8 11001000 res 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LC_DATA2
	inc l
	ld (hl),BOB1_LC_DATA3
	inc l
	ld (hl),BOB1_LC_DATA4
	set 5,h		;    33 FF	    CC	    LF e0 11100000 set 5,h res 3,h
	res 3,h
	dec l
	ld (hl),BOB1_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;	   33 FF	    CC	    L0 f0 11110000
;	   EF 5F CC		33     L1 f8 11111000 set 3,h
;	11 F8 0F EE     EE	 11     L2 c0 11000000 add hl,bc
;	23 A7 FF FF     CC		L4 d0 11010000 set 4,h
;	67 5F FF FF 88  88	    77  L5 d8 11011000 set 3,h
;	33 3D 5F BF     CC		L3 c8 11001000 res 4,h
;	47 5F FF FF 88  88	    77  L7 e8 11101000 set 5,h
;	76 BF FF AA 88  88	    77  L6 e0 11100000 res 3,h
;	67 FF FF 55 88  88	    77  L8 f0 11110000 set 4,h 
;	77 AF FF EE 88  88	    77  L9 f8 11111000 set 3,h
;	67 DF EE BB 88  88	    77  LA c0 11000000 add hl,bc
;	33 AA AA BB     CC		LC d0 11010000 set 4,h
;	11 DD 55 66     EE	 11     LD d8 11011000 set 3,h
;	33 FF DD 55     CC		LB c8 11001000 res 4,h
;	   33 FF	    CC	    LF e8 11101000 set 5,h
;	   EE BB CC		33     LE e0 11100000 res 3,h
DRAW6_BOB1
; ---------------------------
	pop hl       ;    33 FF	    CC	    L0 f0 11110000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	set 3,h	;    EF 5F CC		33     L1 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L1_DATA3
	dec l
	ld (hl),d
	dec l
	add hl,bc      ; 11 F8 0F EE     EE	 11     L2 c0 11000000 add hl,bc
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L2_DATA2
	inc l
	ld (hl),BOB1_L2_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	set 4,h	; 23 A7 FF FF     CC		L4 d0 11010000 set 4,h
	ld de,&8877
	ld (hl),BOB1_L4_DATA4
	dec l
	ld (hl),BOB1_L4_DATA3
	dec l
	ld (hl),BOB1_L4_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB1_L4_DATA1
	ld (hl),a
	set 3,h	; 67 5F FF FF 88  88	    77  L5 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L5_DATA2
	inc l
	ld (hl),BOB1_L5_DATA3
	inc l
	ld (hl),BOB1_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h	; 33 3D 5F BF     CC		L3 c8 11001000 res 4,h
	dec l
	ld (hl),BOB1_L3_DATA4
	dec l
	ld (hl),BOB1_L3_DATA3
	dec l
	ld (hl),BOB1_L3_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB1_L3_DATA1
	ld (hl),a
	set 5,h	; 47 5F FF FF 88  88	    77  L7 e8 11101000 set 5,h
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L7_DATA2
	inc l
	ld (hl),BOB1_L7_DATA3
	inc l
	ld (hl),BOB1_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h	;	L6 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L6_DATA4
	dec l
	ld (hl),BOB1_L6_DATA3
	dec l
	ld (hl),BOB1_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	set 4,h	; 67 FF FF 55 88  88	    77  L8 f0 11110000 set 4,h 
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L8_DATA2
	inc l
	ld (hl),BOB1_L8_DATA3
	inc l
	ld (hl),BOB1_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	L9 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L9_DATA4
	dec l
	ld (hl),BOB1_L9_DATA3
	dec l
	ld (hl),BOB1_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	add hl,bc      ; 67 DF EE BB 88  88	    77  LA c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB1_LA_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LA_DATA2
	inc l
	ld (hl),BOB1_LA_DATA3
	inc l
	ld (hl),BOB1_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h	; 33 AA AA BB     CC		LC d0 11010000 set 4,h
	ld de,&cc33
	dec l
	ld (hl),BOB1_LC_DATA4
	dec l
	ld (hl),BOB1_LC_DATA3
	dec l
	ld (hl),BOB1_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h	; 11 DD 55 66     EE	 11     LD d8 11011000 set 3,h
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LD_DATA2
	inc l
	ld (hl),BOB1_LD_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	res 4,h		;	LB c8 11001000 res 4,h
	ld (hl),BOB1_LB_DATA4
	dec l
	ld (hl),BOB1_LB_DATA3
	dec l
	ld (hl),BOB1_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 5,h	;    33 FF	    CC	    LF e8 11101000 set 5,h
	inc l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LF_DATA3
	inc l
	res 3,h	;    EE BB CC		33     LE e0 11100000 res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LE_DATA3
	dec l
	ld (hl),BOB1_LE_DATA2
	ret
; ---------------------------
;	   33 FF	    CC	    L0 f8 11111000
;	   EF 5F CC		33     L1 c0 11000000 add hl,bc
;	33 3D 5F BF     CC		L3 d0 11010000 set 4,h
;	23 A7 FF FF     CC		L4 d8 11011000 set 3,h
;	11 F8 0F EE     EE	 11     L2 c8 11001000 res 4,h
;	76 BF FF AA 88  88	    77  L6 e8 11101000 set 5,h
;	67 5F FF FF 88  88	    77  L5 e0 11100000 res 3,h
;	47 5F FF FF 88  88	    77  L7 f0 11110000 set 4,h
;	67 FF FF 55 88  88	    77  L8 f8 11111000 set 3,h
;	77 AF FF EE 88  88	    77  L9 c0 11000000 add hl,bc
;	33 FF DD 55     CC		LB d0 11010000 set 4,h
;	33 AA AA BB     CC		LC d8 11011000 set 3,h
;	67 DF EE BB 88  88	    77  LA c8 11001000 res 4,h
;	   EE BB CC		33     LE e8 11101000 set 5,h
;	11 DD 55 66     EE	 11     LD e0 11100000 res 3,h
;	   33 FF	    CC	    LF f0 11110000 set 4,h
DRAW7_BOB1
; ---------------------------
	pop hl       ;    33 FF	    CC	    L0 f8 11111000
;	inc l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_L0_DATA3
	inc l
	add hl,bc      ;    EF 5F CC		33     L1 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L1_DATA3
	dec l
	ld (hl),d
	dec l
	set 4,h	; 33 3D 5F BF     CC		L3 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or BOB1_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L3_DATA2
	inc l
	ld (hl),BOB1_L3_DATA3
	inc l
	ld (hl),BOB1_L3_DATA4
	set 3,h	; 23 A7 FF FF     CC		L4 d8 11011000 set 3,h
	ld de,&8877
	ld (hl),BOB1_L4_DATA4
	dec l
	ld (hl),BOB1_L4_DATA3
	dec l
	ld (hl),BOB1_L4_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB1_L4_DATA1
	ld (hl),a
	res 4,h	; 11 F8 0F EE     EE	 11     L2 c8 11001000 res 4,h
	ld a,(hl)
	and MASKEE
	or BOB1_L2_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L2_DATA2
	inc l
	ld (hl),BOB1_L2_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_L2_DATA4
	ld (hl),a
	inc l
	set 5,h	;	L6 e8 11101000 set 5,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L6_DATA4
	dec l
	ld (hl),BOB1_L6_DATA3
	dec l
	ld (hl),BOB1_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L6_DATA1
	ld (hl),a
	res 3,h	; 67 5F FF FF 88  88	    77  L5 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB1_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L5_DATA2
	inc l
	ld (hl),BOB1_L5_DATA3
	inc l
	ld (hl),BOB1_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h	; 47 5F FF FF 88  88	    77  L7 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L7_DATA4
	dec l
	ld (hl),BOB1_L7_DATA3
	dec l
	ld (hl),BOB1_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L7_DATA1
	ld (hl),a
	set 3,h	; 67 FF FF 55 88  88	    77  L8 f8 11111000 set 3,h
	ld a,(hl)
	and d
	or BOB1_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_L8_DATA2
	inc l
	ld (hl),BOB1_L8_DATA3
	inc l
	ld (hl),BOB1_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc      ;	L9 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_L9_DATA4
	dec l
	ld (hl),BOB1_L9_DATA3
	dec l
	ld (hl),BOB1_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB1_L9_DATA1
	ld (hl),a
	set 4,h	; 33 FF DD 55     CC		LB d0 11010000 set 4,h
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB1_LB_DATA2
	inc l
	ld (hl),BOB1_LB_DATA3
	inc l
	ld (hl),BOB1_LB_DATA4
	set 3,h	; 33 AA AA BB     CC		LC d8 11011000 set 3,h
	ld (hl),BOB1_LC_DATA4
	dec l
	ld (hl),BOB1_LC_DATA3
	dec l
	ld (hl),BOB1_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h	; 67 DF EE BB 88  88	    77  LA c8 11001000 res 4,h
	ld a,(hl)
	and MASK88
	or BOB1_LA_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LA_DATA2
	inc l
	ld (hl),BOB1_LA_DATA3
	inc l
	ld (hl),BOB1_LA_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB1_LA_DATA5
	ld (hl),a
	set 5,h	;    EE BB CC		33     LE e8 11101000 set 5,h
	dec l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB1_LE_DATA3
	dec l
	ld (hl),BOB1_LE_DATA2
	dec l
	res 3,h	; 11 DD 55 66     EE	 11     LD e0 11100000 res 3,h
	ld a,(hl)
	and MASKEE
	or BOB1_LD_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB1_LD_DATA2
	inc l
	ld (hl),BOB1_LD_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB1_LD_DATA4
	ld (hl),a
	set 4,h	;    33 FF	    CC	    LF f0 11110000 set 4,h
	dec l
	ld (hl),BOB1_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;BALL_2
;           11 FF 88        EE    77     L0 c0
;           66 00 EE        88    11     L1 c8
;           9A 86 77                     L2 d0
;        11 70 0D 33 88 EE            77 L3 d8
;        11 69 0E 33 88 EE            77 L4 e0
;        22 D2 0C 77 CC CC            33 L5 e8
;        22 87 0A BB CC CC            33 L6 f0
;        22 0F 15 77 CC CC            33 L7 f8
;        22 0A 08 FF 44 CC            33 L8 c0
;        22 04 55 FF 44 CC            33 L9 c8
;        33 00 BB AA CC CC            33 LA d0
;        11 99 77 45 88 EE            77 LB d8
;        11 FF FF B9 88 EE            77 LC e0
;           FF FF 37                     LD e8
;           77 CC EE        88    11     LE f0
;           11 FF 88        EE    77     LF f8
; ---------------------------
BOB2_L0_DATA2  equ &11
BOB2_L0_DATA3  equ &FF
BOB2_L0_DATA4  equ &88
BOB2_L1_DATA2  equ &66
BOB2_L1_DATA3  equ &00
BOB2_L1_DATA4  equ &EE
BOB2_L2_DATA2  equ &9A
BOB2_L2_DATA3  equ &86
BOB2_L2_DATA4  equ &77
BOB2_L3_DATA1  equ &11
BOB2_L3_DATA2  equ &70
BOB2_L3_DATA3  equ &0D
BOB2_L3_DATA4  equ &33
BOB2_L3_DATA5  equ &88
BOB2_L4_DATA1  equ &11
BOB2_L4_DATA2  equ &69
BOB2_L4_DATA3  equ &0E
BOB2_L4_DATA4  equ &33
BOB2_L4_DATA5  equ &88
BOB2_L5_DATA1  equ &22
BOB2_L5_DATA2  equ &D2
BOB2_L5_DATA3  equ &0C
BOB2_L5_DATA4  equ &77
BOB2_L5_DATA5  equ &CC
BOB2_L6_DATA1  equ &22
BOB2_L6_DATA2  equ &87
BOB2_L6_DATA3  equ &0A
BOB2_L6_DATA4  equ &BB
BOB2_L6_DATA5  equ &CC
BOB2_L7_DATA1  equ &22
BOB2_L7_DATA2  equ &0F
BOB2_L7_DATA3  equ &15
BOB2_L7_DATA4  equ &77
BOB2_L7_DATA5  equ &CC

BOB2_L8_DATA1  equ &22
BOB2_L8_DATA2  equ &0A
BOB2_L8_DATA3  equ &08
BOB2_L8_DATA4  equ &FF
BOB2_L8_DATA5  equ &44
BOB2_L9_DATA1  equ &22
BOB2_L9_DATA2  equ &04
BOB2_L9_DATA3  equ &55
BOB2_L9_DATA4  equ &FF
BOB2_L9_DATA5  equ &44
BOB2_LA_DATA1  equ &33
BOB2_LA_DATA2  equ &00
BOB2_LA_DATA3  equ &BB
BOB2_LA_DATA4  equ &AA
BOB2_LA_DATA5  equ &CC
BOB2_LB_DATA1  equ &11
BOB2_LB_DATA2  equ &99
BOB2_LB_DATA3  equ &77
BOB2_LB_DATA4  equ &45
BOB2_LB_DATA5  equ &88
BOB2_LC_DATA1  equ &11
BOB2_LC_DATA2  equ &FF
BOB2_LC_DATA3  equ &FF
BOB2_LC_DATA4  equ &B9
BOB2_LC_DATA5  equ &88
BOB2_LD_DATA2  equ &FF
BOB2_LD_DATA3  equ &FF
BOB2_LD_DATA4  equ &37
BOB2_LE_DATA2  equ &77
BOB2_LE_DATA3  equ &CC
BOB2_LE_DATA4  equ &EE
BOB2_LF_DATA2  equ &11
BOB2_LF_DATA3  equ &FF
BOB2_LF_DATA4  equ &88
; ---------------------------
;	   11 FF 88	EE    77     L0 c0 11000000
;	   FC 87 7F		     L2 d0 11010000 set 4,h
;	11 9E AF DF 88 EE	    77 L3 d8 11011000 set 3,h
;	   77 2F EE	88    11     L1 c8 11001000 res 4,h
;	33 2F FF FF CC CC	    33 L5 e8 11101000 set 5,h
;	11 5B 7F FF 88 EE	    77 L4 e0 11100000 res 3,h
;	33 D7 FF DD 44 CC	    33 L6 f0 11110000 set 4,h
;	23 2F FF FF CC CC	    33 L7 f8 11111000 set 3,h
;	33 7F FF AA CC CC	    33 L8 c0 11000000 add hl,bc
;	33 6F FF 55 CC CC	    33 LA d0 11010000 set 4,h
;	11 FF EE AA 88 EE	    77 LB d8 11011000 set 3,h
;	33 DF 7F FF 44 CC	    33 L9 c8 11001000 res 4,h
;	   EE AA BB		     LD e8 11101000 set 5,h
;	11 DD 55 55 88 EE	    77 LC e0 11100000 res 3,h
;	   77 55 EE	88    11     LE f0 11110000 set 4,h
;	   11 FF 88	EE    77     LF f8 11111000 set 3,h
DRAW0_BOB2
; ---------------------------
	pop hl		;	L0 c0 11000000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 4,h		;	L2 d0 11010000 set 4,h
	ld (hl),e	; BOB2_L2_DATA4
	dec l
	ld (hl),BOB2_L2_DATA3
	dec l
	ld (hl),BOB2_L2_DATA2
	dec l
	set 3,h		;	L3 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L3_DATA2
	inc l
	ld (hl),BOB2_L3_DATA3
	inc l
	ld (hl),BOB2_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	res 4,h		;	L1 c8 11001000 res 4,h
	dec l
	ld a,(hl)
	and MASK11
	or d		; BOB2_L1_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_L1_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	dec l
	set 5,h		;	L5 e8 11101000 set 5,h
	ld de,&cc33
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L5_DATA2
	inc l
	ld (hl),BOB2_L5_DATA3
	inc l
	ld (hl),BOB2_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		;	L4 e0 11100000 res 3,h
	ld a,(hl)
	and MASK77
	or BOB2_L4_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L4_DATA4
	dec l
	ld (hl),BOB2_L4_DATA3
	dec l
	ld (hl),BOB2_L4_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB2_L4_DATA1
	ld (hl),a
	set 4,h		;	L6 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L6_DATA2
	inc l
	ld (hl),BOB2_L6_DATA3
	inc l
	ld (hl),BOB2_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d	; BOB2_L6_DATA5
	ld (hl),a
	set 3,h		;	L7 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L7_DATA4
	dec l
	ld (hl),BOB2_L7_DATA3
	dec l
	ld (hl),BOB2_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	add hl,bc	;	L8 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L8_DATA2
	inc l
	ld (hl),BOB2_L8_DATA3
	inc l
	ld (hl),BOB2_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	set 4,h		;	LA d0 11010000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LA_DATA4
	dec l
	ld (hl),BOB2_LA_DATA3
	dec l
	ld (hl),BOB2_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		;	LB d8 11011000 set 3,h
	ld a,(hl)
	and MASKEE
	or BOB2_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LB_DATA2
	inc l
	ld (hl),BOB2_LB_DATA3
	inc l
	ld (hl),BOB2_LB_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB2_LB_DATA5
	ld (hl),a
	res 4,h		;	L9 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L9_DATA4
	dec l
	ld (hl),BOB2_L9_DATA3
	dec l
	ld (hl),BOB2_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	set 5,h		;	LD e8 11101000 set 5,h
	inc l
	ld (hl),BOB2_LD_DATA2
	inc l
	ld (hl),BOB2_LD_DATA3
	inc l
	ld (hl),BOB2_LD_DATA4
	inc l
	res 3,h		;	LC e0 11100000 res 3,h
	ld de,&ee77
	ld a,(hl)
	and e 		; MASK77
	or BOB2_LC_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LC_DATA4
	dec l
	ld (hl),BOB2_LC_DATA3
	dec l
	ld (hl),BOB2_LC_DATA2
	dec l
	ld a,(hl)
	and d	; MASKEE
	or BOB2_LC_DATA1
	ld (hl),a
	set 4,h		;	LE f0 11110000 set 4,h
	inc l
	ld a,(hl)
	and MASK88
	or e	; BOB2_LE_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_LE_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or d	; BOB2_LE_DATA4
	ld (hl),a
	set 3,h		;	LF f8 11111000 set 3,h
	ld a,(hl)
	and e	; MASK77
	or BOB2_LF_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LF_DATA3
	dec l
	ld a,(hl)
	and d	; MASKEE
	or BOB2_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
DRAW1_BOB2
; ---------------------------
	pop hl		;	L0 c8 11001000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 4,h		;	L2 d8 11011000 set 4,h
	ld (hl),e	; BOB2_L2_DATA4
	dec l
	ld (hl),BOB2_L2_DATA3
	dec l
	ld (hl),BOB2_L2_DATA2
	res 3,h		;	L1 d0 11010000 res 3,h
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L1_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or BOB2_L1_DATA4
	ld (hl),a
	inc l
	set 5,h		;	L5 f0 11110000 set 5,h
	ld a,(hl)
	and MASK33
	or BOB2_L5_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L5_DATA4
	dec l
	ld (hl),BOB2_L5_DATA3
	dec l
	ld (hl),BOB2_L5_DATA2
	dec l
	ld a,(hl)
	and MASKCC
	or BOB2_L5_DATA1
	ld (hl),a
	res 4,h		;	L3 e0 11100000 res 4,h
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L3_DATA2
	inc l
	ld (hl),BOB2_L3_DATA3
	inc l
	ld (hl),BOB2_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	set 3,h		;	L4 e8 11101000 set 3,h
	ld a,(hl)
	and e
	or BOB2_L4_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L4_DATA4
	dec l
	ld (hl),BOB2_L4_DATA3
	dec l
	ld (hl),BOB2_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L4_DATA1
	ld (hl),a
	set 4,h		;	L6 f8 11111000 set 4,h
	ld de,&cc33
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L6_DATA2
	inc l
	ld (hl),BOB2_L6_DATA3
	inc l
	ld (hl),BOB2_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d	; BOB2_L6_DATA5
	ld (hl),a
	add hl,bc	;	L7 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L7_DATA4
	dec l
	ld (hl),BOB2_L7_DATA3
	dec l
	ld (hl),BOB2_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	set 4,h		;	L9 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L9_DATA2
	inc l
	ld (hl),BOB2_L9_DATA3
	inc l
	ld (hl),BOB2_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	set 3,h		;	LA d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LA_DATA4
	dec l
	ld (hl),BOB2_LA_DATA3
	dec l
	ld (hl),BOB2_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h		;	L8 c8 11001000 res 4,h  
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L8_DATA2
	inc l
	ld (hl),BOB2_L8_DATA3
	inc l
	ld (hl),BOB2_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	set 5,h		;	LC e8 11101000 set 5,h
	ld de,&EE77
	ld a,(hl)
	and e
	or BOB2_LC_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LC_DATA4
	dec l
	ld (hl),BOB2_LC_DATA3
	dec l
	ld (hl),BOB2_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_LC_DATA1
	ld (hl),a
	res 3,h		;	LB e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB2_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LB_DATA2
	inc l
	ld (hl),BOB2_LB_DATA3
	inc l
	ld (hl),BOB2_LB_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_LB_DATA5
	ld (hl),a
	set 4,h		;	LD f0 11110000 set 4,h
	dec l
	ld (hl),BOB2_LD_DATA4
	dec l
	ld (hl),BOB2_LD_DATA3
	dec l
	ld (hl),BOB2_LD_DATA2
	set 3,h		;	LE f8 11111000 set 3,h
	ld a,(hl)
	and MASK88
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LE_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	add hl,bc	;	LF c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or BOB2_LF_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or BOB2_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
DRAW2_BOB2
; ---------------------------
	pop hl		;	L0 d0 11010000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 3,h		;	L1 d8 11011000 set 3,h
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L1_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	dec l
	set 5,h		;	L3 e8 11101000 set 5,h res 4,h
	res 4,h
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L3_DATA2
	inc l
	ld (hl),BOB2_L3_DATA3
	inc l
	ld (hl),BOB2_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	res 3,h		;	L2 e0 11100000 res 3,h
	dec l
	ld (hl),e	; BOB2_L2_DATA4
	dec l
	ld (hl),BOB2_L2_DATA3
	dec l
	ld (hl),BOB2_L2_DATA2
	dec l
	set 4,h		;	L4 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or BOB2_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L4_DATA2
	inc l
	ld (hl),BOB2_L4_DATA3
	inc l
	ld (hl),BOB2_L4_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L4_DATA5
	ld (hl),a
	set 3,h		;	L5 f8 11111000 set 3,h
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L5_DATA4
	dec l
	ld (hl),BOB2_L5_DATA3
	dec l
	ld (hl),BOB2_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	add hl,bc	;	L6 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L6_DATA2
	inc l
	ld (hl),BOB2_L6_DATA3
	inc l
	ld (hl),BOB2_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;	L8 d0 11010000 set 4,h
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L8_DATA4
	dec l
	ld (hl),BOB2_L8_DATA3
	dec l
	ld (hl),BOB2_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	set 3,h		;	L9 d8 11011000 set 3,hc8 11001000 res 4,h
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L9_DATA2
	inc l
	ld (hl),BOB2_L9_DATA3
	inc l
	ld (hl),BOB2_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	res 4,h		;	L7 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L7_DATA4
	dec l
	ld (hl),BOB2_L7_DATA3
	dec l
	ld (hl),BOB2_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	set 5,h		;	LB e8 11101000 set 5,h
	ld a,(hl)
	and MASKEE
	or BOB2_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LB_DATA2
	inc l
	ld (hl),BOB2_LB_DATA3
	inc l
	ld (hl),BOB2_LB_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB2_LB_DATA5
	ld (hl),a
	res 3,h		;	LA e0 11100000 res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LA_DATA4
	dec l
	ld (hl),BOB2_LA_DATA3
	dec l
	ld (hl),BOB2_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;	LC f0 11110000 set 4,h
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LC_DATA2
	inc l
	ld (hl),BOB2_LC_DATA3
	inc l
	ld (hl),BOB2_LC_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_LC_DATA5
	ld (hl),a
	set 3,h		;	LD f8 11111000 set 3,h
	dec l
	ld (hl),BOB2_LD_DATA4
	dec l
	ld (hl),BOB2_LD_DATA3
	dec l
	ld (hl),BOB2_LD_DATA2
	add hl,bc	;	LE c0 11000000 add hl,bc
	ld a,(hl)
	and MASK88
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LE_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	set 3,h		; 	LF c8 11001000 set 3,h
	ld a,(hl)
	and e
	or BOB2_LF_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or BOB2_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
;	   11 FF 88	EE    77     L0 d8 11011000
;	   FC 87 7F		     L2 e8 11101000 set 5,h res 4,h
;	   77 2F EE	88    11     L1 e0 11100000 res 3,h
;	11 9E AF DF 88 EE	    77 L3 f0 11110000 set 4,h
;	11 5B 7F FF 88 EE	    77 L4 f8 11111000 set 3,h
;	33 2F FF FF CC CC	    33 L5 c0 11000000 add hl,bc
;	23 2F FF FF CC CC	    33 L7 d0 11010000 set 4,h
;	33 7F FF AA CC CC	    33 L8 d8 11011000 set 3,h
;	33 D7 FF DD 44 CC	    33 L6 c8 11001000 res 4,h
;	33 6F FF 55 CC CC	    33 LA e8 11101000 set 5,h
;	33 DF 7F FF 44 CC	    33 L9 e0 11100000 res 3,h
;	11 FF EE AA 88 EE	    77 LB f0 11110000 set 4,h
;	11 DD 55 55 88 EE	    77 LC f8 11111000 set 3,h
;	   EE AA BB		     LD c0 11000000 add hl,bc
;	   77 55 EE	88    11     LE c8 11001000 set 3,h
;	   11 FF 88	EE    77     LF d0 11010000 set 4,h res 3,h
DRAW3_BOB2
; ---------------------------
	pop hl	;    11 FF 88	EE    77     L0 d8 11011000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 5,h		;	L2 e8 11101000 set 5,h res 4,h
	res 4,h
	ld (hl),BOB2_L2_DATA4
	dec l
	ld (hl),BOB2_L2_DATA3
	dec l
	ld (hl),BOB2_L2_DATA2
	res 3,h		;	L1 e0 11100000 res 3,h
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L1_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	inc l
	set 4,h		;	L3 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L3_DATA4
	dec l
	ld (hl),BOB2_L3_DATA3
	dec l
	ld (hl),BOB2_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	set 3,h		;	L4 f8 11111000 set 3,h
	ld a,(hl)
	and d
	or BOB2_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L4_DATA2
	inc l
	ld (hl),BOB2_L4_DATA3
	inc l
	ld (hl),BOB2_L4_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L4_DATA5
	ld (hl),a
	add hl,bc	; L5 c0 11000000 add hl,bc
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L5_DATA4
	dec l
	ld (hl),BOB2_L5_DATA3
	dec l
	ld (hl),BOB2_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	set 4,h		;	L7 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L7_DATA2
	inc l
	ld (hl),BOB2_L7_DATA3
	inc l
	ld (hl),BOB2_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	L8 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L8_DATA4
	dec l
	ld (hl),BOB2_L8_DATA3
	dec l
	ld (hl),BOB2_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	res 4,h		;	L6 c8 11001000 res 4,h
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L6_DATA2
	inc l
	ld (hl),BOB2_L6_DATA3
	inc l
	ld (hl),BOB2_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 5,h		;	LA e8 11101000 set 5,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LA_DATA4
	dec l
	ld (hl),BOB2_LA_DATA3
	dec l
	ld (hl),BOB2_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 3,h		;	L9 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L9_DATA2
	inc l
	ld (hl),BOB2_L9_DATA3
	inc l
	ld (hl),BOB2_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	set 4,h		;	LB f0 11110000 set 4,h
	ld de,&EE77
	ld a,(hl)
	and e
	or BOB2_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LB_DATA4
	dec l
	ld (hl),BOB2_LB_DATA3
	dec l
	ld (hl),BOB2_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_LB_DATA1
	ld (hl),a
	set 3,h		;	LC f8 11111000 set 3,h
	ld a,(hl)
	and d
	or BOB2_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LC_DATA2
	inc l
	ld (hl),BOB2_LC_DATA3
	inc l
	ld (hl),BOB2_LC_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_LC_DATA5
	ld (hl),a
	add hl,bc	;	LD c0 11000000 add hl,bc
	dec l
	ld (hl),BOB2_LD_DATA4
	dec l
	ld (hl),BOB2_LD_DATA3
	dec l
	ld (hl),BOB2_LD_DATA2
	set 3,h		;	LE c8 11001000 set 3,h
	ld a,(hl)
	and MASK88
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LE_DATA3
	inc l
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	set 4,h		;	LF d0 11010000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and e
	or BOB2_LF_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or BOB2_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
DRAW4_BOB2
; ---------------------------
	pop hl	;    11 FF 88	EE    77     L0 e0 11100000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 3,h		;	L1 e8 11101000 set 3,h
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L1_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	set 4,h		;	L2 f0 11110000 set 4,h res 3,h
	res 3,h
	ld (hl),BOB2_L2_DATA2
	inc l
	ld (hl),BOB2_L2_DATA3
	inc l
	ld (hl),BOB2_L2_DATA4
	inc l
	set 3,h		;	L3 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L3_DATA4
	dec l
	ld (hl),BOB2_L3_DATA3
	dec l
	ld (hl),BOB2_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	add hl,bc	;	L4 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB2_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L4_DATA2
	inc l
	ld (hl),BOB2_L4_DATA3
	inc l
	ld (hl),BOB2_L4_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L4_DATA5
	ld (hl),a
	set 4,h		;	L6 d0 11010000 set 4,h
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L6_DATA4
	dec l
	ld (hl),BOB2_L6_DATA3
	dec l
	ld (hl),BOB2_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	set 3,h		;	L7 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L7_DATA2
	inc l
	ld (hl),BOB2_L7_DATA3
	inc l
	ld (hl),BOB2_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h		;	L5 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L5_DATA4
	dec l
	ld (hl),BOB2_L5_DATA3
	dec l
	ld (hl),BOB2_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	set 5,h		;	L9 e8 11101000 set 5,h
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L9_DATA2
	inc l
	ld (hl),BOB2_L9_DATA3
	inc l
	ld (hl),BOB2_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	res 3,h		;	L8 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L8_DATA4
	dec l
	ld (hl),BOB2_L8_DATA3
	dec l
	ld (hl),BOB2_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	set 4,h		;	LA f0 11110000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LA_DATA2
	inc l
	ld (hl),BOB2_LA_DATA3
	inc l
	ld (hl),BOB2_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	LB f8 11111000 set 3,h
	ld de,&EE77
	ld a,(hl)
	and e
	or BOB2_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LB_DATA4
	dec l
	ld (hl),BOB2_LB_DATA3
	dec l
	ld (hl),BOB2_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_LB_DATA1
	ld (hl),a
	add hl,bc	;	LC c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or BOB2_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LC_DATA2
	inc l
	ld (hl),BOB2_LC_DATA3
	inc l
	ld (hl),BOB2_LC_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_LC_DATA5
	ld (hl),a
	set 4,h		;	LE d0 11010000 set 4,h
	dec l
	ld a,(hl)
	and MASK11
	or BOB2_LE_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LE_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or e
	ld (hl),a
	set 3,h		;	LF d8 11011000 set 3,h
	ld a,(hl)
	and d
	or BOB2_LF_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_LF_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_LF_DATA4
	ld (hl),a
	res 4,h		;	LD c8 11001000 res 4,h
	ld (hl),BOB2_LD_DATA4
	dec l
	ld (hl),BOB2_LD_DATA3
	dec l
	ld (hl),BOB2_LD_DATA2
	ret
; ---------------------------
DRAW5_BOB2
; ---------------------------
	pop hl		;	L0 e8 11101000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 4,h		;	L1 f0 11110000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L1_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	set 3,h		; 	L2 f8 11111000 set 3,h
	ld (hl),BOB2_L2_DATA2
	inc l
	ld (hl),BOB2_L2_DATA3
	inc l
	ld (hl),BOB2_L2_DATA4
	inc l
	add hl,bc	;	L3 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L3_DATA4
	dec l
	ld (hl),BOB2_L3_DATA3
	dec l
	ld (hl),BOB2_L3_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	set 4,h		;	L5 d0 11010000 set 4,h
	ld de,&cc33
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L5_DATA2
	inc l
	ld (hl),BOB2_L5_DATA3
	inc l
	ld (hl),BOB2_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	L6 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L6_DATA4
	dec l
	ld (hl),BOB2_L6_DATA3
	dec l
	ld (hl),BOB2_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	res 4,h		;	L4 c8 11001000 res 4,h
	ld a,(hl)
	and MASKEE
	or BOB2_L4_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L4_DATA2
	inc l
	ld (hl),BOB2_L4_DATA3
	inc l
	ld (hl),BOB2_L4_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB2_L4_DATA5
	ld (hl),a
	set 5,h		;	L8 e8 11101000 set 5,h
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L8_DATA4
	dec l
	ld (hl),BOB2_L8_DATA3
	dec l
	ld (hl),BOB2_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	res 3,h		;	L7 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L7_DATA2
	inc l
	ld (hl),BOB2_L7_DATA3
	inc l
	ld (hl),BOB2_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;	L9 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L9_DATA4
	dec l
	ld (hl),BOB2_L9_DATA3
	dec l
	ld (hl),BOB2_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	set 3,h		;	LA f8 11111000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LA_DATA2
	inc l
	ld (hl),BOB2_LA_DATA3
	inc l
	ld (hl),BOB2_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc	;	LB c0 11000000 add hl,bc
	ld de,&EE77
	ld a,(hl)
	and e
	or BOB2_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LB_DATA4
	dec l
	ld (hl),BOB2_LB_DATA3
	dec l
	ld (hl),BOB2_LB_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_LB_DATA1
	ld (hl),a
	set 4,h		;	LD d0 11010000 set 4,h
	inc l
	ld (hl),BOB2_LD_DATA2
	inc l
	ld (hl),BOB2_LD_DATA3
	inc l
	ld (hl),BOB2_LD_DATA4
	set 3,h		;	LE d8 11011000 set 3,h
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LE_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or e
	ld (hl),a
	dec l
	res 4,h		;	LC c8 11001000 res 4,h
	ld a,(hl)
	and d
	or BOB2_LC_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LC_DATA2
	inc l
	ld (hl),BOB2_LC_DATA3
	inc l
	ld (hl),BOB2_LC_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_LC_DATA5
	ld (hl),a
	set 5,h		;	LF e0 11100000 set 5,h res 3,h
	res 3,h
	dec l
	ld a,(hl)
	and e
	or BOB2_LF_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LF_DATA3
	dec l
	ld a,(hl)
	and d
	or BOB2_LF_DATA2
	ld (hl),a
	ret
; ---------------------------
DRAW6_BOB2
; ---------------------------
	pop hl       ;    11 FF 88	EE    77     L0 f0 11110000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	set 3,h		;	L1 f8 11111000 set 3,h
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L1_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	add hl,bc	;	L2 c0 11000000 add hl,bc
	ld (hl),BOB2_L2_DATA2
	inc l
	ld (hl),BOB2_L2_DATA3
	inc l
	ld (hl),BOB2_L2_DATA4
	inc l
	set 4,h		;	L4 d0 11010000 set 4,h
	ld a,(hl)
	and e
	or BOB2_L4_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L4_DATA4
	dec l
	ld (hl),BOB2_L4_DATA3
	dec l
	ld (hl),BOB2_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L4_DATA1
	ld (hl),a
	set 3,h		;	L5 d8 11011000 set 3,h
	ld de,&cc33
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L5_DATA2
	inc l
	ld (hl),BOB2_L5_DATA3
	inc l
	ld (hl),BOB2_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h        ;	L3 c8 11001000 res 4,h
	ld a,(hl)
	and MASK77
	or BOB2_L3_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L3_DATA4
	dec l
	ld (hl),BOB2_L3_DATA3
	dec l
	ld (hl),BOB2_L3_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB2_L3_DATA1
	ld (hl),a
	set 5,h		;	L7 e8 11101000 set 5,h
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L7_DATA2
	inc l
	ld (hl),BOB2_L7_DATA3
	inc l
	ld (hl),BOB2_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		;	L6 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L6_DATA4
	dec l
	ld (hl),BOB2_L6_DATA3
	dec l
	ld (hl),BOB2_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	set 4,h		;	L8 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L8_DATA2
	inc l
	ld (hl),BOB2_L8_DATA3
	inc l
	ld (hl),BOB2_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	set 3,h		;	L9 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L9_DATA4
	dec l
	ld (hl),BOB2_L9_DATA3
	dec l
	ld (hl),BOB2_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	add hl,bc	;	LA c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LA_DATA2
	inc l
	ld (hl),BOB2_LA_DATA3
	inc l
	ld (hl),BOB2_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;	LC d0 11010000 set 4,h
	ld de,&EE77
	ld a,(hl)
	and e
	or BOB2_LC_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LC_DATA4
	dec l
	ld (hl),BOB2_LC_DATA3
	dec l
	ld (hl),BOB2_LC_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_LC_DATA1
	ld (hl),a
	set 3,h		;	LD d8 11011000 set 3,h
	inc l
	ld (hl),BOB2_LD_DATA2
	inc l
	ld (hl),BOB2_LD_DATA3
	inc l
	ld (hl),BOB2_LD_DATA4
	inc l
	res 4,h		;	LB c8 11001000 res 4,h
	ld a,(hl)
	and e
	or BOB2_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LB_DATA4
	dec l
	ld (hl),BOB2_LB_DATA3
	dec l
	ld (hl),BOB2_LB_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB2_LB_DATA1
	ld (hl),a
	set 5,h		;	LF e8 11101000 set 5,h
	inc l
	ld a,(hl)
	and d
	or BOB2_LF_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_LF_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_LF_DATA4
	ld (hl),a
	res 3,h		;	LE e0 11100000 res 3,h
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LE_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_LE_DATA2
	ld (hl),a
	ret
; ---------------------------
DRAW7_BOB2
; ---------------------------
	pop hl		;	L0 f8 11111000
;	inc l
	ld de,&EE77
	ld a,(hl)
	and d
	or BOB2_L0_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB2_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or BOB2_L0_DATA4
	ld (hl),a
	add hl,bc	;	L1 c0 11000000 add hl,bc
	ld a,(hl)
	and MASK11
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L1_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB2_L1_DATA2
	ld (hl),a
	dec l
	set 4,h		;	L3 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or BOB2_L3_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L3_DATA2
	inc l
	ld (hl),BOB2_L3_DATA3
	inc l
	ld (hl),BOB2_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L3_DATA5
	ld (hl),a
	set 3,h		;	L4 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or BOB2_L4_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L4_DATA4
	dec l
	ld (hl),BOB2_L4_DATA3
	dec l
	ld (hl),BOB2_L4_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L4_DATA1
	ld (hl),a
	res 4,h		;	L2 c8 11001000 res 4,h
	inc l
	ld (hl),BOB2_L2_DATA2
	inc l
	ld (hl),BOB2_L2_DATA3
	inc l
	ld (hl),BOB2_L2_DATA4
	inc l
	set 5,h		;	L6 e8 11101000 set 5,h
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L6_DATA4
	dec l
	ld (hl),BOB2_L6_DATA3
	dec l
	ld (hl),BOB2_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L6_DATA1
	ld (hl),a
	res 3,h		;	L5 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or BOB2_L5_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L5_DATA2
	inc l
	ld (hl),BOB2_L5_DATA3
	inc l
	ld (hl),BOB2_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;	L7 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_L7_DATA4
	dec l
	ld (hl),BOB2_L7_DATA3
	dec l
	ld (hl),BOB2_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L7_DATA1
	ld (hl),a
	set 3,h		;	L8 f8 11111000 set 3,h
	ld a,(hl)
	and d
	or BOB2_L8_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_L8_DATA2
	inc l
	ld (hl),BOB2_L8_DATA3
	inc l
	ld (hl),BOB2_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB2_L8_DATA5
	ld (hl),a
	add hl,bc	;	L9 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or BOB2_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_L9_DATA4
	dec l
	ld (hl),BOB2_L9_DATA3
	dec l
	ld (hl),BOB2_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or BOB2_L9_DATA1
	ld (hl),a
	set 4,h		;	LB d0 11010000 set 4,h
	ld a,(hl)
	and MASKEE
	or BOB2_LB_DATA1
	ld (hl),a
	inc l
	ld (hl),BOB2_LB_DATA2
	inc l
	ld (hl),BOB2_LB_DATA3
	inc l
	ld (hl),BOB2_LB_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB2_LB_DATA5
	ld (hl),a
	set 3,h		;	LC d8 11011000 set 3,h
	ld a,(hl)
	and MASK77
	or BOB2_LC_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB2_LC_DATA4
	dec l
	ld (hl),BOB2_LC_DATA3
	dec l
	ld (hl),BOB2_LC_DATA2
	dec l
	ld a,(hl)
	and MASKEE
	or BOB2_LC_DATA1
	ld (hl),a
	res 4,h		;	LA c8 11001000 res 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB2_LA_DATA2
	inc l
	ld (hl),BOB2_LA_DATA3
	inc l
	ld (hl),BOB2_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 5,h		;	LE e8 11101000 set 5,h
	ld de,&8811
	dec l
	ld a,(hl)
	and e
	or BOB2_LE_DATA4
	ld (hl),a
	dec l
	ld (hl),BOB2_LE_DATA3
	dec l
	ld a,(hl)
	and d
	or BOB2_LE_DATA2
	ld (hl),a
	res 3,h		;	LD e0 11100000 res 3,h
	ld (hl),BOB2_LD_DATA2
	inc l
	ld (hl),BOB2_LD_DATA3
	inc l
	ld (hl),BOB2_LD_DATA4
	set 4,h		;	LF f0 11110000 set 4,h
	ld a,(hl)
	and MASK77
	or d
	ld (hl),a
	dec l
	ld (hl),BOB2_LF_DATA3
	dec l
	ld a,(hl)
	and MASKEE
	or e
	ld (hl),a
	ret
; ---------------------------
;BALL_3
;	      FF CC                33    L0 c0
;	   33 00 77         CC           L1 c8
;	   45 C3 33 88      88        77 L2 d0
;	   B8 86 19 CC                33 L3 d8
;	   BC 0F 11 CC                33 L4 e0
;	11 61 86 33 EE  EE            11 L5 e8
;	11 43 0D 55 EE  EE            11 L6 f0
;	11 07 0A BB EE  EE            11 L7 f8
;	11 05 04 77 AA  EE            11 L8 c0
;	11 02 22 FF AA  EE            11 L9 c8
;	11 88 55 DD 66  EE            11 LA d0
;	   CC BB AA 4C                33 LB d8
;	   FF FF DC CC                33 LC e0
;	   77 FF 9B 88      88        77 LD e8
;	   33 EE 77         CC           LE f0
;	      FF CC                33    LF f8
BOB3_L0_DATA3  equ &FF
BOB3_L0_DATA4  equ &CC
BOB3_L1_DATA2  equ &33
BOB3_L1_DATA3  equ &00
BOB3_L1_DATA4  equ &77
BOB3_L2_DATA2  equ &45
BOB3_L2_DATA3  equ &C3
BOB3_L2_DATA4  equ &33
BOB3_L2_DATA5  equ &88
BOB3_L3_DATA2  equ &B8
BOB3_L3_DATA3  equ &86
BOB3_L3_DATA4  equ &19
BOB3_L3_DATA5  equ &CC
BOB3_L4_DATA2  equ &BC
BOB3_L4_DATA3  equ &0F
BOB3_L4_DATA4  equ &11
BOB3_L4_DATA5  equ &CC
BOB3_L5_DATA1  equ &11
BOB3_L5_DATA2  equ &61
BOB3_L5_DATA3  equ &86
BOB3_L5_DATA4  equ &33
BOB3_L5_DATA5  equ &EE
BOB3_L6_DATA1  equ &11
BOB3_L6_DATA2  equ &43
BOB3_L6_DATA3  equ &0D
BOB3_L6_DATA4  equ &55
BOB3_L6_DATA5  equ &EE
BOB3_L7_DATA1  equ &11
BOB3_L7_DATA2  equ &07
BOB3_L7_DATA3  equ &0A
BOB3_L7_DATA4  equ &BB
BOB3_L7_DATA5  equ &EE

BOB3_L8_DATA1  equ &11
BOB3_L8_DATA2  equ &05
BOB3_L8_DATA3  equ &04
BOB3_L8_DATA4  equ &77
BOB3_L8_DATA5  equ &AA
BOB3_L9_DATA1  equ &11
BOB3_L9_DATA2  equ &02
BOB3_L9_DATA3  equ &22
BOB3_L9_DATA4  equ &FF
BOB3_L9_DATA5  equ &AA
BOB3_LA_DATA1  equ &11
BOB3_LA_DATA2  equ &88
BOB3_LA_DATA3  equ &55
BOB3_LA_DATA4  equ &DD
BOB3_LA_DATA5  equ &66
BOB3_LB_DATA2  equ &CC
BOB3_LB_DATA3  equ &BB
BOB3_LB_DATA4  equ &AA
BOB3_LB_DATA5  equ &4C
BOB3_LC_DATA2  equ &FF
BOB3_LC_DATA3  equ &FF
BOB3_LC_DATA4  equ &DC
BOB3_LC_DATA5  equ &CC
BOB3_LD_DATA2  equ &77
BOB3_LD_DATA3  equ &FF
BOB3_LD_DATA4  equ &9B
BOB3_LD_DATA5  equ &88
BOB3_LE_DATA2  equ &33
BOB3_LE_DATA3  equ &EE
BOB3_LE_DATA4  equ &77
BOB3_LF_DATA3  equ &FF
BOB3_LF_DATA4  equ &CC
; ---------------------------
DRAW0_BOB3
; ---------------------------
	pop hl		;	L0 c0 11000000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	inc l
	set 4,h		;	L2 d0 11010000 set 4,h
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L2_DATA4
	dec l
	ld (hl),BOB3_L2_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	set 3,h		;	L3 d8 11011000 set 3,h
	ld (hl),BOB3_L3_DATA2
	inc l
	ld (hl),BOB3_L3_DATA3
	inc l
	ld (hl),BOB3_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h		;	L1 c8 11001000 res 4,h
	dec l
	ld (hl),BOB3_L1_DATA4
	dec l
	ld (hl),BOB3_L1_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	dec l
	set 5,h		;  11 9F 7F FF EE  EE            11 L5 e8 11101000 set 5,h
	ld de,&ee11
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L5_DATA2
	inc l
	ld (hl),BOB3_L5_DATA3
	inc l
	ld (hl),BOB3_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		;     AD BF FF CC                33 L4 e0 11100000 res 3,h
	ld a,(hl)
	and MASK33
	or BOB3_L4_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L4_DATA4
	dec l
	ld (hl),BOB3_L4_DATA3
	dec l
	ld (hl),BOB3_L4_DATA2
	dec l
	set 4,h		;	L6 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L6_DATA2
	inc l
	ld (hl),BOB3_L6_DATA3
	inc l
	ld (hl),BOB3_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;	L7 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L7_DATA4
	dec l
	ld (hl),BOB3_L7_DATA3
	dec l
	ld (hl),BOB3_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	add hl,bc	;	L8 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L8_DATA2
	inc l
	ld (hl),BOB3_L8_DATA3
	inc l
	ld (hl),BOB3_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	set 4,h		;	LA d0 11010000 set 4,h
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LA_DATA4
	dec l
	ld (hl),BOB3_LA_DATA3
	dec l
	ld (hl),BOB3_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		;	LB d8 11011000 set 3,h
	inc l
	ld (hl),BOB3_LB_DATA2
	inc l
	ld (hl),BOB3_LB_DATA3
	inc l
	ld (hl),BOB3_LB_DATA4
	inc l
	ld a,(hl)
	and MASK33
	or BOB3_LB_DATA5
	ld (hl),a
	res 4,h		;	L9 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L9_DATA4
	dec l
	ld (hl),BOB3_L9_DATA3
	dec l
	ld (hl),BOB3_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 5,h		;	LD e8 11101000 set 5,h
	inc l
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_LD_DATA3
	inc l
	ld (hl),BOB3_LD_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	res 3,h		;     EE AA AA CC                33 LC e0 11100000 res 3,h
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LC_DATA4
	dec l
	ld (hl),BOB3_LC_DATA3
	dec l
	ld (hl),BOB3_LC_DATA2
	set 4,h		;     33 AA FF         CC           LE f0 11110000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LE_DATA3
	inc l
	ld (hl),BOB3_LE_DATA4
	set 3,h		;        FF CC                33    LF f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LF_DATA3
	ret
; ---------------------------
;	       FF CC                33    L0 c8 11001000
;	    76 C3 3F 88      88        77 L2 d8 11011000 set 4,h
;	    33 9F 7F         CC           L1 d0 11010000 res 3,h
;	 11 9F 7F FF EE  EE            11 L5 f0 11110000 set 5,h
;	    CF D7 6F CC                33 L3 e0 11100000 res 4,h
;	    AD BF FF CC                33 L4 e8 11101000 set 3,h
;	 11 EB FF EE AA  EE            11 L6 f8 11111000 set 4,h
;	 11 1F 7F FF EE  EE            11 L7 c0 11000000 add hl,bc
;	 11 EF BF FF AA  EE            11 L9 d0 11010000 set 4,h
;	 11 BF 7F AA EE  EE            11 LA d8 11011000 set 3,h
;	 11 BF FF DD 66  EE            11 L8 c8 11001000 res 4,h
;	    EE AA AA CC                33 LC e8 11101000 set 5,h
;	    FF FF 55 44                33 LB e0 11100000 res 3,h
;	    77 55 55 88      88        77 LD f0 11110000 set 4,h
;	    33 AA FF         CC           LE f8 11111000 set 3,h
;	       FF CC                33    LF c0 11000000 add hl,bc
DRAW1_BOB3
; ---------------------------
	pop hl	;        FF CC                33    L0 c8 11001000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	inc l
	set 4,h		;     76 C3 3F 88      88        77 L2 d8 11011000 set 4,h
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L2_DATA4
	dec l
	ld (hl),BOB3_L2_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	res 3,h		;     33 9F 7F         CC           L1 d0 11010000 res 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L1_DATA3
	inc l
	ld (hl),BOB3_L1_DATA4
	inc l
	set 5,h		;  11 9F 7F FF EE  EE            11 L5 f0 11110000 set 5,h
	ld de,&ee11
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L5_DATA4
	dec l
	ld (hl),BOB3_L5_DATA3
	dec l
	ld (hl),BOB3_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h		;     CF D7 6F CC                33 L3 e0 11100000 res 4,h
	inc l
	ld (hl),BOB3_L3_DATA2
	inc l
	ld (hl),BOB3_L3_DATA3
	inc l
	ld (hl),BOB3_L3_DATA4
	inc l
	ld a,(hl)
	and MASK33
	or BOB3_L3_DATA5
	ld (hl),a
	set 3,h		;     AD BF FF CC                33 L4 e8 11101000 set 3,h
	ld a,(hl)
	and MASK33
	or BOB3_L4_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L4_DATA4
	dec l
	ld (hl),BOB3_L4_DATA3
	dec l
	ld (hl),BOB3_L4_DATA2
	dec l
	set 4,h		;  11 EB FF EE AA  EE            11 L6 f8 11111000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L6_DATA2
	inc l
	ld (hl),BOB3_L6_DATA3
	inc l
	ld (hl),BOB3_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	add hl,bc	;  11 1F 7F FF EE  EE            11 L7 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L7_DATA4
	dec l
	ld (hl),BOB3_L7_DATA3
	dec l
	ld (hl),BOB3_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;  11 EF BF FF AA  EE            11 L9 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L9_DATA2
	inc l
	ld (hl),BOB3_L9_DATA3
	inc l
	ld (hl),BOB3_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	set 3,h		;  11 BF 7F AA EE  EE            11 LA d8 11011000 set 3,h
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LA_DATA4
	dec l
	ld (hl),BOB3_LA_DATA3
	dec l
	ld (hl),BOB3_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h		;  11 BF FF DD 66  EE            11 L8 c8 11001000 res 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L8_DATA2
	inc l
	ld (hl),BOB3_L8_DATA3
	inc l
	ld (hl),BOB3_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	set 5,h		;     EE AA AA CC                33 LC e8 11101000 set 5,h
	ld a,(hl)
	and MASK33
	or BOB3_LC_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LC_DATA4
	dec l
	ld (hl),BOB3_LC_DATA3
	dec l
	ld (hl),d
	res 3,h		;     FF FF 55 44                33 LB e0 11100000 res 3,h
	ld (hl),BOB3_LB_DATA2
	inc l
	ld (hl),BOB3_LB_DATA3
	inc l
	ld (hl),BOB3_LB_DATA4
	inc l
	ld de,&cc33
	ld a,(hl)
	and e
	or BOB3_LB_DATA5
	ld (hl),a
	set 4,h		;     77 55 55 88      88        77 LD f0 11110000 set 4,h
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LD_DATA4
	dec l
	ld (hl),BOB3_LD_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	set 3,h		;     33 AA FF         CC           LE f8 11111000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LE_DATA3
	inc l
	ld (hl),BOB3_LE_DATA4
	add hl,bc	;        FF CC                33    LF c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LF_DATA3
	ret
; ---------------------------
;	       FF CC                33    L0 d0 11010000
;	    33 9F 7F         CC           L1 d8 11011000 set 3,h
;	    CF D7 6F CC                33 L3 e8 11101000 set 5,h res 4,h
;	    76 C3 3F 88      88        77 L2 e0 11100000 res 3,h
;	    AD BF FF CC                33 L4 f0 11110000 set 4,h
;	 11 9F 7F FF EE  EE            11 L5 f8 11111000 set 3,h
;	 11 EB FF EE AA  EE            11 L6 c0 11000000 add hl,bc
;	 11 BF FF DD 66  EE            11 L8 d0 11010000 set 4,h
;	 11 EF BF FF AA  EE            11 L9 d8 11011000 set 3,hc8 11001000 res 4,h
;	 11 1F 7F FF EE  EE            11 L7 c8 11001000 res 4,h
;	    FF FF 55 44                33 LB e8 11101000 set 5,h
;	 11 BF 7F AA EE  EE            11 LA e0 11100000 res 3,h
;	    EE AA AA CC                33 LC f0 11110000 set 4,h
;	    77 55 55 88      88        77 LD f8 11111000 set 3,h
;	    33 AA FF         CC           LE c0 11000000 add hl,bc
;	       FF CC                33    LF c8 11001000 set 3,h
DRAW2_BOB3
; ---------------------------
	pop hl	;        FF CC                33    L0 d0 11010000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;     33 9F 7F         CC           L1 d8 11011000 set 3,h
	ld (hl),BOB3_L1_DATA4
	dec l
	ld (hl),BOB3_L1_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 5,h		;     CF D7 6F CC                33 L3 e8 11101000 set 5,h res 4,h
	res 4,h
	ld (hl),BOB3_L3_DATA2
	inc l
	ld (hl),BOB3_L3_DATA3
	inc l
	ld (hl),BOB3_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		;     76 C3 3F 88      88        77 L2 e0 11100000 res 3,h
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L2_DATA4
	dec l
	ld (hl),BOB3_L2_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	set 4,h		;     AD BF FF CC                33 L4 f0 11110000 set 4,h
	ld (hl),BOB3_L4_DATA2
	inc l
	ld (hl),BOB3_L4_DATA3
	inc l
	ld (hl),BOB3_L4_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;  11 9F 7F FF EE  EE            11 L5 f8 11111000 set 3,h
	ld de,&ee11
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L5_DATA4
	dec l
	ld (hl),BOB3_L5_DATA3
	dec l
	ld (hl),BOB3_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	add hl,bc	;  11 EB FF EE AA  EE            11 L6 c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L6_DATA2
	inc l
	ld (hl),BOB3_L6_DATA3
	inc l
	ld (hl),BOB3_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	set 4,h		;  11 BF FF DD 66  EE            11 L8 d0 11010000 set 4,h
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L8_DATA4
	dec l
	ld (hl),BOB3_L8_DATA3
	dec l
	ld (hl),BOB3_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		;  11 EF BF FF AA  EE            11 L9 d8 11011000 set 3,hc8 11001000 res 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L9_DATA2
	inc l
	ld (hl),BOB3_L9_DATA3
	inc l
	ld (hl),BOB3_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	res 4,h		;  11 1F 7F FF EE  EE            11 L7 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L7_DATA4
	dec l
	ld (hl),BOB3_L7_DATA3
	dec l
	ld (hl),BOB3_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 5,h		;     FF FF 55 44                33 LB e8 11101000 set 5,h
	inc l
	ld (hl),BOB3_LB_DATA2
	inc l
	ld (hl),BOB3_LB_DATA3
	inc l
	ld (hl),BOB3_LB_DATA4
	inc l
	ld a,(hl)
	and MASK33
	or BOB3_LB_DATA5
	ld (hl),a
	res 3,h		;  11 BF 7F AA EE  EE            11 LA e0 11100000 res 3,h
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LA_DATA4
	dec l
	ld (hl),BOB3_LA_DATA3
	dec l
	ld (hl),BOB3_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;     EE AA AA CC                33 LC f0 11110000 set 4,h
	inc l
	ld (hl),d
	inc l
	ld (hl),BOB3_LC_DATA3
	inc l
	ld (hl),BOB3_LC_DATA4
	inc l
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;     77 55 55 88      88        77 LD f8 11111000 set 3,h
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LD_DATA4
	dec l
	ld (hl),BOB3_LD_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	add hl,bc	;     33 AA FF         CC           LE c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LE_DATA3
	inc l
	ld (hl),BOB3_LE_DATA4
	set 3,h		;        FF CC                33    LF c8 11001000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LF_DATA3
	ret
; ---------------------------
;	       FF CC                33    L0 d8 11011000
;	    76 C3 3F 88      88        77 L2 e8 11101000 set 5,h res 4,h
;	    33 9F 7F         CC           L1 e0 11100000 res 3,h
;	    CF D7 6F CC                33 L3 f0 11110000 set 4,h
;	    AD BF FF CC                33 L4 f8 11111000 set 3,h
;	 11 9F 7F FF EE  EE            11 L5 c0 11000000 add hl,bc
;	 11 1F 7F FF EE  EE            11 L7 d0 11010000 set 4,h
;	 11 BF FF DD 66  EE            11 L8 d8 11011000 set 3,h
;	 11 EB FF EE AA  EE            11 L6 c8 11001000 res 4,h
;	 11 BF 7F AA EE  EE            11 LA e8 11101000 set 5,h
;	 11 EF BF FF AA  EE            11 L9 e0 11100000 res 3,h
;	    FF FF 55 44                33 LB f0 11110000 set 4,h
;	    EE AA AA CC                33 LC f8 11111000 set 3,h
;	    77 55 55 88      88        77 LD c0 11000000 add hl,bc
;	    33 AA FF         CC           LE c8 11001000 set 3,h
;	       FF CC                33    LF d0 11010000 set 4,h res 3,h
DRAW3_BOB3
; ---------------------------
	pop hl		;	L0 d8 11011000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	inc l
	set 5,h		;    76 C3 3F 88      88        77 L2 e8 11101000 set 5,h res 4,h
	res 4,h
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L2_DATA4
	dec l
	ld (hl),BOB3_L2_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	res 3,h		;    33 9F 7F         CC           L1 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L1_DATA3
	inc l
	ld (hl),BOB3_L1_DATA4
	inc l
	set 4,h		;    CF D7 6F CC                33 L3 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L3_DATA4
	dec l
	ld (hl),BOB3_L3_DATA3
	dec l
	ld (hl),BOB3_L3_DATA2
	set 3,h		;    AD BF FF CC                33 L4 f8 11111000 set 3,h
	ld (hl),BOB3_L4_DATA2
	inc l
	ld (hl),BOB3_L4_DATA3
	inc l
	ld (hl),BOB3_L4_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc	; 11 9F 7F FF EE  EE            11 L5 c0 11000000 add hl,bc
	ld de,&ee11
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L5_DATA4
	dec l
	ld (hl),BOB3_L5_DATA3
	dec l
	ld (hl),BOB3_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		; 11 1F 7F FF EE  EE            11 L7 d0 11010000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L7_DATA2
	inc l
	ld (hl),BOB3_L7_DATA3
	inc l
	ld (hl),BOB3_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		; 11 BF FF DD 66  EE            11 L8 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L8_DATA4
	dec l
	ld (hl),BOB3_L8_DATA3
	dec l
	ld (hl),BOB3_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h		; 11 EB FF EE AA  EE            11 L6 c8 11001000 res 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L6_DATA2
	inc l
	ld (hl),BOB3_L6_DATA3
	inc l
	ld (hl),BOB3_L6_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	set 5,h		; 11 BF 7F AA EE  EE            11 LA e8 11101000 set 5,h
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LA_DATA4
	dec l
	ld (hl),BOB3_LA_DATA3
	dec l
	ld (hl),BOB3_LA_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 3,h		; 11 EF BF FF AA  EE            11 L9 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L9_DATA2
	inc l
	ld (hl),BOB3_L9_DATA3
	inc l
	ld (hl),BOB3_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	set 4,h		;    FF FF 55 44                33 LB f0 11110000 set 4,h
	ld a,(hl)
	and MASK33
	or BOB3_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LB_DATA4
	dec l
	ld (hl),BOB3_LB_DATA3
	dec l
	ld (hl),BOB3_LB_DATA2
	set 3,h		;    EE AA AA CC                33 LC f8 11111000 set 3,h
	ld (hl),d
	inc l
	ld (hl),BOB3_LC_DATA3
	inc l
	ld (hl),BOB3_LC_DATA4
	inc l
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc	;    77 55 55 88      88        77 LD c0 11000000 add hl,bc
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LD_DATA4
	dec l
	ld (hl),BOB3_LD_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	set 3,h		;    33 AA FF         CC           LE c8 11001000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LE_DATA3
	inc l
	ld (hl),BOB3_LE_DATA4
	set 4,h		;       FF CC                33    LF d0 11010000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LF_DATA3
	ret
; ---------------------------
;	       FF CC                33    L0 e0 11100000
;	    33 9F 7F         CC           L1 e8 11101000 set 3,h
;	    76 C3 3F 88      88        77 L2 f0 11110000 set 4,h res 3,h
;	    CF D7 6F CC                33 L3 f8 11111000 set 3,h
;	    AD BF FF CC                33 L4 c0 11000000 add hl,bc
;	 11 EB FF EE AA  EE            11 L6 d0 11010000 set 4,h
;	 11 1F 7F FF EE  EE            11 L7 d8 11011000 set 3,h
;	 11 9F 7F FF EE  EE            11 L5 c8 11001000 res 4,h
;	 11 EF BF FF AA  EE            11 L9 e8 11101000 set 5,h
;	 11 BF FF DD 66  EE            11 L8 e0 11100000 res 3,h
;	 11 BF 7F AA EE  EE            11 LA f0 11110000 set 4,h
;	    FF FF 55 44                33 LB f8 11111000 set 3,h
;	    EE AA AA CC                33 LC c0 11000000 add hl,bc
;	    33 AA FF         CC           LE d0 11010000 set 4,h
;	       FF CC                33    LF d8 11011000 set 3,h
;	    77 55 55 88      88        77 LD c8 11001000 res 4,h
DRAW4_BOB3
; ---------------------------
	pop hl	;       FF CC                33    L0 e0 11100000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;    33 9F 7F         CC           L1 e8 11101000 set 3,h
	ld (hl),BOB3_L1_DATA4
	dec l
	ld (hl),BOB3_L1_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;    76 C3 3F 88      88        77 L2 f0 11110000 set 4,h res 3,h
	res 3,h
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_L2_DATA3
	inc l
	ld (hl),BOB3_L2_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	set 3,h		;    CF D7 6F CC                33 L3 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L3_DATA4
	dec l
	ld (hl),BOB3_L3_DATA3
	dec l
	ld (hl),BOB3_L3_DATA2
	add hl,bc	;    AD BF FF CC                33 L4 c0 11000000 add hl,bc
	ld (hl),BOB3_L4_DATA2
	inc l
	ld (hl),BOB3_L4_DATA3
	inc l
	ld (hl),BOB3_L4_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		; 11 EB FF EE AA  EE            11 L6 d0 11010000 set 4,h
	ld de,&ee11
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L6_DATA4
	dec l
	ld (hl),BOB3_L6_DATA3
	dec l
	ld (hl),BOB3_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		; 11 1F 7F FF EE  EE            11 L7 d8 11011000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L7_DATA2
	inc l
	ld (hl),BOB3_L7_DATA3
	inc l
	ld (hl),BOB3_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h		; 11 9F 7F FF EE  EE            11 L5 c8 11001000 res 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L5_DATA4
	dec l
	ld (hl),BOB3_L5_DATA3
	dec l
	ld (hl),BOB3_L5_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 5,h		; 11 EF BF FF AA  EE            11 L9 e8 11101000 set 5,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L9_DATA2
	inc l
	ld (hl),BOB3_L9_DATA3
	inc l
	ld (hl),BOB3_L9_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	res 3,h		; 11 BF FF DD 66  EE            11 L8 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L8_DATA4
	dec l
	ld (hl),BOB3_L8_DATA3
	dec l
	ld (hl),BOB3_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		; 11 BF 7F AA EE  EE            11 LA f0 11110000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LA_DATA2
	inc l
	ld (hl),BOB3_LA_DATA3
	inc l
	ld (hl),BOB3_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	set 3,h		;    FF FF 55 44                33 LB f8 11111000 set 3,h
	ld a,(hl)
	and MASK33
	or BOB3_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LB_DATA4
	dec l
	ld (hl),BOB3_LB_DATA3
	dec l
	ld (hl),BOB3_LB_DATA2
	add hl,bc	;    EE AA AA CC                33 LC c0 11000000 add hl,bc
	ld (hl),d
	inc l
	ld (hl),BOB3_LC_DATA3
	inc l
	ld (hl),BOB3_LC_DATA4
	inc l
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;    33 AA FF         CC           LE d0 11010000 set 4,h
	dec l
	ld (hl),BOB3_LE_DATA4
	dec l
	ld (hl),BOB3_LE_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		;       FF CC                33    LF d8 11011000 set 3,h
	inc l
	ld (hl),BOB3_LF_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	inc l
	res 4,h		;    77 55 55 88      88        77 LD c8 11001000 res 4,h
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LD_DATA4
	dec l
	ld (hl),BOB3_LD_DATA3
	dec l
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	ret
; ---------------------------
;	       FF CC                33    L0 e8 11101000
;	    33 9F 7F         CC           L1 f0 11110000 set 4,h res 3,h
;	    76 C3 3F 88      88        77 L2 f8 11111000 set 3,h
;	    CF D7 6F CC                33 L3 c0 11000000 add hl,bc
;	 11 9F 7F FF EE  EE            11 L5 d0 11010000 set 4,h
;	 11 EB FF EE AA  EE            11 L6 d8 11011000 set 3,h
;	    AD BF FF CC                33 L4 c8 11001000 res 4,h
;	 11 BF FF DD 66  EE            11 L8 e8 11101000 set 5,h
;	 11 1F 7F FF EE  EE            11 L7 e0 11100000 res 3,h
;	 11 EF BF FF AA  EE            11 L9 f0 11110000 set 4,h
;	 11 BF 7F AA EE  EE            11 LA f8 11111000 set 3,h
;	    FF FF 55 44                33 LB c0 11000000 add hl,bc
;	    77 55 55 88      88        77 LD d0 11010000 set 4,h
;	    33 AA FF         CC           LE d8 11011000 set 3,h
;	    EE AA AA CC                33 LC c8 11001000 res 4,h
;	       FF CC                33    LF e0 11100000 set 5,h res 3,h
DRAW5_BOB3
; ---------------------------
	pop hl	;       FF CC                33    L0 e8 11101000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		;    33 9F 7F         CC           L1 f0 11110000 set 4,h res 3,h
	res 3,h
	ld (hl),BOB3_L1_DATA4
	dec l
	ld (hl),BOB3_L1_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		;    76 C3 3F 88      88        77 L2 f8 11111000 set 3,h
	ld a,(hl)
	and MASKCC
	or BOB3_L2_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_L2_DATA3
	inc l
	ld (hl),BOB3_L2_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	add hl,bc	;    CF D7 6F CC                33 L3 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L3_DATA4
	dec l
	ld (hl),BOB3_L3_DATA3
	dec l
	ld (hl),BOB3_L3_DATA2
	dec l
	set 4,h		; 11 9F 7F FF EE  EE            11 L5 d0 11010000 set 4,h
	ld de,&ee11
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L5_DATA2
	inc l
	ld (hl),BOB3_L5_DATA3
	inc l
	ld (hl),BOB3_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		; 11 EB FF EE AA  EE            11 L6 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L6_DATA4
	dec l
	ld (hl),BOB3_L6_DATA3
	dec l
	ld (hl),BOB3_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h		;    AD BF FF CC                33 L4 c8 11001000 res 4,h
	inc l
	ld (hl),BOB3_L4_DATA2
	inc l
	ld (hl),BOB3_L4_DATA3
	inc l
	ld (hl),BOB3_L4_DATA4
	inc l
	ld a,(hl)
	and MASK33
	or BOB3_L4_DATA5
	ld (hl),a
	set 5,h		; 11 BF FF DD 66  EE            11 L8 e8 11101000 set 5,h
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L8_DATA4
	dec l
	ld (hl),BOB3_L8_DATA3
	dec l
	ld (hl),BOB3_L8_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 3,h		; 11 1F 7F FF EE  EE            11 L7 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L7_DATA2
	inc l
	ld (hl),BOB3_L7_DATA3
	inc l
	ld (hl),BOB3_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		; 11 EF BF FF AA  EE            11 L9 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L9_DATA4
	dec l
	ld (hl),BOB3_L9_DATA3
	dec l
	ld (hl),BOB3_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		; 11 BF 7F AA EE  EE            11 LA f8 11111000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LA_DATA2
	inc l
	ld (hl),BOB3_LA_DATA3
	inc l
	ld (hl),BOB3_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	add hl,bc	;    FF FF 55 44                33 LB c0 11000000 add hl,bc
	ld de,&cc33
	ld a,(hl)
	and e
	or BOB3_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LB_DATA4
	dec l
	ld (hl),BOB3_LB_DATA3
	dec l
	ld (hl),BOB3_LB_DATA2
	set 4,h		;    77 55 55 88      88        77 LD d0 11010000 set 4,h
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_LD_DATA3
	inc l
	ld (hl),BOB3_LD_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	set 3,h		;    33 AA FF         CC           LE d8 11011000 set 3,h
	dec l
	ld (hl),BOB3_LE_DATA4
	dec l
	ld (hl),BOB3_LE_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 4,h		;    EE AA AA CC                33 LC c8 11001000 res 4,h
	ld (hl),BOB3_LC_DATA2
	inc l
	ld (hl),BOB3_LC_DATA3
	inc l
	ld (hl),BOB3_LC_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 5,h		;       FF CC                33    LF e0 11100000 set 5,h res 3,h
	res 3,h
	dec l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LF_DATA3
	ret
; ---------------------------
;	       FF CC                33    L0 f0 11110000
;	    33 9F 7F         CC           L1 f8 11111000 set 3,h
;	    76 C3 3F 88      88        77 L2 c0 11000000 add hl,bc
;	    AD BF FF CC                33 L4 d0 11010000 set 4,h
;	 11 9F 7F FF EE  EE            11 L5 d8 11011000 set 3,h
;	    CF D7 6F CC                33 L3 c8 11001000 res 4,h
;	 11 1F 7F FF EE  EE            11 L7 e8 11101000 set 5,h
;	 11 EB FF EE AA  EE            11 L6 e0 11100000 res 3,h
;	 11 BF FF DD 66  EE            11 L8 f0 11110000 set 4,h
;	 11 EF BF FF AA  EE            11 L9 f8 11111000 set 3,h
;	 11 BF 7F AA EE  EE            11 LA c0 11000000 add hl,bc
;	    EE AA AA CC                33 LC d0 11010000 set 4,h
;	    77 55 55 88      88        77 LD d8 11011000 set 3,h
;	    FF FF 55 44                33 LB c8 11001000 res 4,h
;	       FF CC                33    LF e8 11101000 set 5,h
;	    33 AA FF         CC           LE e0 11100000 res 3,h
DRAW6_BOB3
; ---------------------------
	pop hl	;       FF CC                33    L0 f0 11110000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;    33 9F 7F         CC           L1 f8 11111000 set 3,h
	ld (hl),BOB3_L1_DATA4
	dec l
	ld (hl),BOB3_L1_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	add hl,bc      ;    76 C3 3F 88      88        77 L2 c0 11000000 add hl,bc
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_L2_DATA3
	inc l
	ld (hl),BOB3_L2_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	set 4,h		;    AD BF FF CC                33 L4 d0 11010000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L4_DATA4
	dec l
	ld (hl),BOB3_L4_DATA3
	dec l
	ld (hl),BOB3_L4_DATA2
	dec l
	set 3,h		; 11 9F 7F FF EE  EE            11 L5 d8 11011000 set 3,h
	ld de,&ee11
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L5_DATA2
	inc l
	ld (hl),BOB3_L5_DATA3
	inc l
	ld (hl),BOB3_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 4,h		;    CF D7 6F CC                33 L3 c8 11001000 res 4,h
	ld a,(hl)
	and MASK33
	or BOB3_L3_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L3_DATA4
	dec l
	ld (hl),BOB3_L3_DATA3
	dec l
	ld (hl),BOB3_L3_DATA2
	dec l
	set 5,h		; 11 1F 7F FF EE  EE            11 L7 e8 11101000 set 5,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L7_DATA2
	inc l
	ld (hl),BOB3_L7_DATA3
	inc l
	ld (hl),BOB3_L7_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		; 11 EB FF EE AA  EE            11 L6 e0 11100000 res 3,h
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L6_DATA4
	dec l
	ld (hl),BOB3_L6_DATA3
	dec l
	ld (hl),BOB3_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		; 11 BF FF DD 66  EE            11 L8 f0 11110000 set 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L8_DATA2
	inc l
	ld (hl),BOB3_L8_DATA3
	inc l
	ld (hl),BOB3_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	set 3,h		; 11 EF BF FF AA  EE            11 L9 f8 11111000 set 3,h
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L9_DATA4
	dec l
	ld (hl),BOB3_L9_DATA3
	dec l
	ld (hl),BOB3_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	add hl,bc      ; 11 BF 7F AA EE  EE            11 LA c0 11000000 add hl,bc
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LA_DATA2
	inc l
	ld (hl),BOB3_LA_DATA3
	inc l
	ld (hl),BOB3_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	set 4,h		;    EE AA AA CC                33 LC d0 11010000 set 4,h
	ld de,&cc33
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LC_DATA4
	dec l
	ld (hl),BOB3_LC_DATA3
	dec l
	ld (hl),BOB3_LC_DATA2
	set 3,h		;    77 55 55 88      88        77 LD d8 11011000 set 3,h
	ld a,(hl)
	and MASK88
	or BOB3_LD_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_LD_DATA3
	inc l
	ld (hl),BOB3_LD_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	res 4,h		;    FF FF 55 44                33 LB c8 11001000 res 4,h
	ld a,(hl)
	and e
	or BOB3_LB_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LB_DATA4
	dec l
	ld (hl),BOB3_LB_DATA3
	dec l
	ld (hl),BOB3_LB_DATA2
	set 5,h		;       FF CC                33    LF e8 11101000 set 5,h
	inc l
	ld (hl),BOB3_LF_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	res 3,h		;    33 AA FF         CC           LE e0 11100000 res 3,h
	ld (hl),BOB3_LE_DATA4
	dec l
	ld (hl),BOB3_LE_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	ret
; ---------------------------
;	       FF CC                33    L0 f8 11111000
;	    33 9F 7F         CC           L1 c0 11000000 add hl,bc
;	    CF D7 6F CC                33 L3 d0 11010000 set 4,h
;	    AD BF FF CC                33 L4 d8 11011000 set 3,h
;	    76 C3 3F 88      88        77 L2 c8 11001000 res 4,h
;	 11 EB FF EE AA  EE            11 L6 e8 11101000 set 5,h
;	 11 9F 7F FF EE  EE            11 L5 e0 11100000 res 3,h
;	 11 1F 7F FF EE  EE            11 L7 f0 11110000 set 4,h
;	 11 BF FF DD 66  EE            11 L8 f8 11111000 set 3,h
;	 11 EF BF FF AA  EE            11 L9 c0 11000000 add hl,bc
;	    FF FF 55 44                33 LB d0 11010000 set 4,h
;	    EE AA AA CC                33 LC d8 11011000 set 3,h
;	 11 BF 7F AA EE  EE            11 LA c8 11001000 res 4,h
;	    33 AA FF         CC           LE e8 11101000 set 5,h
;	    77 55 55 88      88        77 LD e0 11100000 res 3,h
;	       FF CC                33    LF f0 11110000 set 4,h
DRAW7_BOB3
; ---------------------------
	pop hl       ;       FF CC                33    L0 f8 11111000
;	inc l
	ld de,&cc33
	inc l
	ld (hl),BOB3_L0_DATA3
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	add hl,bc      ;    33 9F 7F         CC           L1 c0 11000000 add hl,bc
	ld (hl),BOB3_L1_DATA4
	dec l
	ld (hl),BOB3_L1_DATA3
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;    CF D7 6F CC                33 L3 d0 11010000 set 4,h
	ld (hl),BOB3_L3_DATA2
	inc l
	ld (hl),BOB3_L3_DATA3
	inc l
	ld (hl),BOB3_L3_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 3,h		;    AD BF FF CC                33 L4 d8 11011000 set 3,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L4_DATA4
	dec l
	ld (hl),BOB3_L4_DATA3
	dec l
	ld (hl),BOB3_L4_DATA2
	res 4,h		;    76 C3 3F 88      88        77 L2 c8 11001000 res 4,h
	ld a,(hl)
	and MASK88
	or BOB3_L2_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_L2_DATA3
	inc l
	ld (hl),BOB3_L2_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_L2_DATA5
	ld (hl),a
	set 5,h		; 11 EB FF EE AA  EE            11 L6 e8 11101000 set 5,h
	ld de,&ee11
	ld a,(hl)
	and e
	or BOB3_L6_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L6_DATA4
	dec l
	ld (hl),BOB3_L6_DATA3
	dec l
	ld (hl),BOB3_L6_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 3,h		; 11 9F 7F FF EE  EE            11 L5 e0 11100000 res 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L5_DATA2
	inc l
	ld (hl),BOB3_L5_DATA3
	inc l
	ld (hl),BOB3_L5_DATA4
	inc l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	set 4,h		; 11 1F 7F FF EE  EE            11 L7 f0 11110000 set 4,h
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_L7_DATA4
	dec l
	ld (hl),BOB3_L7_DATA3
	dec l
	ld (hl),BOB3_L7_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 3,h		; 11 BF FF DD 66  EE            11 L8 f8 11111000 set 3,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_L8_DATA2
	inc l
	ld (hl),BOB3_L8_DATA3
	inc l
	ld (hl),BOB3_L8_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_L8_DATA5
	ld (hl),a
	add hl,bc      ; 11 EF BF FF AA  EE            11 L9 c0 11000000 add hl,bc
	ld a,(hl)
	and e
	or BOB3_L9_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_L9_DATA4
	dec l
	ld (hl),BOB3_L9_DATA3
	dec l
	ld (hl),BOB3_L9_DATA2
	dec l
	ld a,(hl)
	and d
	or e
	ld (hl),a
	set 4,h		;    FF FF 55 44                33 LB d0 11010000 set 4,h
	inc l
	ld (hl),BOB3_LB_DATA2
	inc l
	ld (hl),BOB3_LB_DATA3
	inc l
	ld (hl),BOB3_LB_DATA4
	inc l
	ld a,(hl)
	and MASK33
	or BOB3_LB_DATA5
	ld (hl),a
	set 3,h		;    EE AA AA CC                33 LC d8 11011000 set 3,h
	ld a,(hl)
	and MASK33
	or BOB3_LC_DATA5
	ld (hl),a
	dec l
	ld (hl),BOB3_LC_DATA4
	dec l
	ld (hl),BOB3_LC_DATA3
	dec l
	ld (hl),d
	dec l
	res 4,h		; 11 BF 7F AA EE  EE            11 LA c8 11001000 res 4,h
	ld a,(hl)
	and d
	or e
	ld (hl),a
	inc l
	ld (hl),BOB3_LA_DATA2
	inc l
	ld (hl),BOB3_LA_DATA3
	inc l
	ld (hl),BOB3_LA_DATA4
	inc l
	ld a,(hl)
	and e
	or BOB3_LA_DATA5
	ld (hl),a
	set 5,h		;    33 AA FF         CC           LE e8 11101000 set 5,h
	dec l
	ld (hl),BOB3_LE_DATA4
	dec l
	ld (hl),BOB3_LE_DATA3
	dec l
	ld de,&cc33
	ld a,(hl)
	and d
	or e
	ld (hl),a
	res 3,h		;    77 55 55 88      88        77 LD e0 11100000 res 3,h
	ld a,(hl)
	and MASKCC
	or BOB3_LD_DATA2
	ld (hl),a
	inc l
	ld (hl),BOB3_LD_DATA3
	inc l
	ld (hl),BOB3_LD_DATA4
	inc l
	ld a,(hl)
	and MASK77
	or BOB3_LD_DATA5
	ld (hl),a
	set 4,h		;       FF CC                33    LF f0 11110000 set 4,h
	dec l
	ld a,(hl)
	and e
	or d
	ld (hl),a
	dec l
	ld (hl),BOB3_LF_DATA3
	ret
